हिंदी

A constructor is likely to be defined after the class declaration.

Advertisements

प्रश्न

A constructor is likely to be defined after the class declaration. 

विकल्प

  • True

  • False

MCQ
सत्य या असत्य
Advertisements

उत्तर

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 7: Constructors - EXERCISES [पृष्ठ ४१८]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 7 Constructors
EXERCISES | Q III. 7. | पृष्ठ ४१८
Advertisements
Share
Notifications



      Forgot password?
Use app×