1(xii)
The statement given below is termed as:
public void Accept(int a)
- (a)Method signature
- (b)Method block
- (c)Method prototype
- (d)Constructor
Show SolutionHide Solution↓
Method prototype
Reason — In Java, a method prototype specifies the method’s access specifier, return type, name, and parameter list without including its body. The statement public void Accept(int a) shows these elements but does not contain a method body, so it is a method prototype.