Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

which command is written correctly? move move(); move move();

Question

which command is written correctly? move move(); move move();

Explanation:

Brief Explanations

In most programming languages, method/function calls follow the syntax of the name of the function followed by parentheses. Also, in languages with case - sensitive syntax like Java, C#, etc., the correct case must be used. Assuming a case - sensitive language and a function named Move, Move(); is the correct command as it has the function name in the right case and proper parentheses and semicolon at the end.

Answer:

Move();