मराठी

Explain the following term: Parameterised constructor - Computer Applications

Advertisements
Advertisements

प्रश्न

Explain the following term:

Parameterised constructor

लघु उत्तर

उत्तर

  1. A parameterized constructor is a member method with the same name as the class. It can initiate instance variables with the parameters supplied when constructing an object.
  2. Example: Employer em = new Employer(3, 6, 14); 
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 7: Constructors - EXERCISES [पृष्ठ ४१८]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×