what is a parameterized constructor..?
Answers
Answered by
1
Answer:
Explanation:
Parameterized Constructor – A constructor is called Parameterized Constructor when it accepts a specific number of parameters. To initialize data members of a class with distinct values. In the above example, we are passing a string and an integer to the object.
Answered by
1
Explanation:
see the attachment I hope it is helpful for you
Attachments:
Similar questions