What is a Parameterized Constructor?
Advertisements
Question
What is a parameterized constructor?
Short/Brief Note
Advertisements
Solution
Parameterized Constructor:
It is a constructor that accepts parameters. When an object is declared using a parameterized constructor, the initial values have to be passed as arguments to the constructor.
shaalaa.com
Is there an error in this question or solution?
