+ 1
constructor is a method having same name of the class. when an object is created the constructor called automatically. for example Person person1 = new Person();
16th Feb 2017, 6:51 PM
Mohsin Yousaf
Mohsin Yousaf - avatar