Constructor in Java- Javatpoint - 0 views
-
mahesh 1234 on 23 Dec 13Constructor is a special type of method that is used to initialize the object. Constructor is invoked at the time of object creation. It constructs the values i.e. provides data for the object that is why it is known as constructor. Rules for creating constructor There are basically two rules defined for the constructor.