ICSE Class 10 Computer Applications Question 14 of 19

Constructors — Question 14

Back to all questions
14
Question

Question 14

How can objects be initialized with desired values at the time of object creation ?

Answer

Objects can be initialized with desired values at the time of object creation by using parameterized constructor and passing the desired values as arguments at the time of creation of object.