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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?