what os the syntax of parameterised constructor?
mohitann:
The constructors can be called explicitly or implicitly. Uses ofParameterized constructor: It is used to initialize the various data elements of different objects with different values when they are created. It is used to overload constructors.
Answers
Answered by
0
It may be necessary to initialize the various data elements of different objects with different values when they are created. This is achieved by passing arguments to the constructor function when the objects are created. The constructors that can take arguments are called parameterized constructors.
Similar questions