The syntax for accessing methods or variables of a class is:
a )<class name>, <instance variable or method>
b)
<object reference>, <instance variable or method>
C) <class reference>.<object reference>
d) None of these
Answers
Answered by
0
Answer:
A method is a program module that contains a series of statements that carry out a task. To execute a method, you invoke or call it from another method; the calling method makes a method call, which invokes the called method. Any class can contain an unlimited number of methods, and each method can be called an unlimited number of times. The syntax to declare method is given below.
java method declaration image
Similar questions