Constructor is a member method that has the same name as the class and is used to allocate memory for an object. Constructors do not return anything and are called when an object of a class is created to initialize the object.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
31 views1 page
Java Constructor
Constructor is a member method that has the same name as the class and is used to allocate memory for an object. Constructors do not return anything and are called when an object of a class is created to initialize the object.