हिंदी

A constructor is a member methods of a class. - Computer Applications

Advertisements
Advertisements

प्रश्न

A constructor is a member methods of a class. 

विकल्प

  • True 

  • False

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

उत्तर

This statement is True.

Explanation:

While constructors and methods are conceptually different, they are nonetheless considered members of a class in Java. They belong to the class and are used to set up objects. In a broader sense, constructors might be considered member functions because they are declared within the class and have a part in initializing the class's state.

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

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×