+ 11
Constructors are functions with the same name as the class name. They are used to initialize variables at the time of object creation. Constructors are not permitted to have a return type. Also, there are two types of constructors. 1)Default-No arguments 2)Parameterized-Arguments taken
18th Apr 2017, 11:58 AM
Pixie
Pixie - avatar