Computer Applications

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

Java Constructors

2 Likes

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.

Answered By

2 Likes


Related Questions