Advertisements
Advertisements
प्रश्न
A constructor is likely to be defined after the class declaration.
विकल्प
True
False
MCQ
सत्य या असत्य
उत्तर
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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?