हिंदी

For which purpose a constructor is used? - Computer Applications

Advertisements
Advertisements

प्रश्न

For which purpose a constructor is used?

विकल्प

  • To initialise the instance variables 

  • To provide the instance variables

  • To organise the instance variables

  • To simplify the instance variables

MCQ

उत्तर

To initialise the instance variables

Explanation:

A constructor sets default or user-defined settings for data members when an object is created.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 7: Constructors - EXERCISES [पृष्ठ ४१७]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×