मराठी

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
चूक किंवा बरोबर

उत्तर

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×