Write short notes on the following types of constructors:
i. Parameterized constructors.
ii. Default constructors.
Answer:
Parameterized constructors
-Constructors that have parameters or that can take arguments eg.
integer(int x,int y); where integer is the name of the class
ii. Default constructors
-Constructors that default values in the parameter list.
If no value is supplied the compiler uses the given value.