Provide the declaration for two variables called x coordinate and y coordinate . Both variables are of type int and both are to be initialised to zero in the declaration .
Please answer if you know. Don't waste time.
Answers
Answered by
2
Answer:
Declaration: The code set in bold are all variable declarations that associate a variable ... Declaring a Variable to Refer to an Object; Instantiating a Class; Initializing an Object ... The Java programming language divides variable types into two main ... public class Point { public int x = 0; public int y = 0; //A constructor! public
Explanation:
Similar questions
Social Sciences,
4 months ago
Geography,
4 months ago
Computer Science,
4 months ago
Math,
8 months ago
Geography,
8 months ago
Social Sciences,
11 months ago
Social Sciences,
11 months ago
English,
11 months ago