हिंदी

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×