Advertisements
Advertisements
Question
A constructor is likely to be defined after the class declaration.
Options
True
False
MCQ
True or False
Solution
This statement is True.
Explanation:
In Java, a constructor is declared within the class following the declaration. It is part of the class body and is usually defined before or alongside other member functions and variables.
shaalaa.com
Is there an error in this question or solution?