मराठी

What is not true for a constructor? - Computer Applications

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
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 7: Constructors - EXERCISES [पृष्ठ ४१७]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×