हिंदी

A constructor is used to initialize the data members of a class. - Computer Applications

Advertisements
Advertisements

प्रश्न

A constructor is used to initialize the data members of a class.

विकल्प

  • True

  • False

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

उत्तर

This statement is True.

Explanation:

A constructor is a class-specific member function used automatically when an object is created. Its principal purpose is to set default or specified values for the class's data members. 

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

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×