मराठी

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×