Advertisements
Advertisements
प्रश्न
What is not true for a constructor?
पर्याय
It is used only to initialize the data members.
It returns a unique value.
It may not use parameter.
None of the above.
MCQ
उत्तर
It returns a unique value.
Explanation:
A constructor does not return any value, even void. It simply initializes the object and returns nothing.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?