मराठी

What is meant by a constructor? - Computer Applications

Advertisements
Advertisements

प्रश्न

What is meant by a constructor?

लघु उत्तर

उत्तर

A constructor is a member method with the same name as the class. It initializes data members or instance variables and creates class objects. 

Example: Car ob = new Car();      
The statement invokes the Car class's default constructor.     

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 7: Constructors - EXERCISES [पृष्ठ ४१८]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 7 Constructors
EXERCISES | Q V. 1. | पृष्ठ ४१८
अविचल Computer Applications [English] Class 10 ICSE
पाठ 7 Constructors
Review Insight | Q 9. (i) | पृष्ठ ४१५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×