What is parameterized constructor??
Answers
Answered by
9
The constructor which accepts arguments with different data types known as parameters is called Parameterized constructors.
Example:-
class brainly
.......
{
brainly(int a, char b) //parameterized constructor.
HOPE THIS HELPS!!
Example:-
class brainly
.......
{
brainly(int a, char b) //parameterized constructor.
HOPE THIS HELPS!!
Satan2002:
hope this helps
Similar questions