0% 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.

Uploaded by

santhuanu
Copyright
© © All Rights Reserved
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% 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.

Uploaded by

santhuanu
Copyright
© © All Rights Reserved
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

1) Constructor is member method

2) constructor will have same as class name


3) constructor is never return anything
4) it will be used to memory

You might also like