If you are quite aware of the default constructor , they are similar to the class name but do not have in arguments in their round brackets . A programming language that allows the developers us to attain the objects but providing argument to the constructor method when the object are initialized . The constructor that can accept arguments are called parametrized constructors
Example:-
Code:
class xyz{
int a,n;
public:
abc(int x,int y); //paramererise constructor
................
.................
};
abc::abc(int x,int y)
Bookmarks