0% found this document useful (0 votes)
3 views1 page

Java Oop Constructor

A constructor is a special method in Java that initializes objects and shares the same name as the class, with no return type. There are three types of constructors: default constructor, parameterized constructor, and copy constructor.

Uploaded by

clanclasher.th4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Java Oop Constructor

A constructor is a special method in Java that initializes objects and shares the same name as the class, with no return type. There are three types of constructors: default constructor, parameterized constructor, and copy constructor.

Uploaded by

clanclasher.th4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Java OOP: Constructor

Constructor
• A constructor is a special method that initializes objects.
• It has the same name as the class and no return type.
• Types: Default constructor, Parameterized constructor, Copy constructor.

You might also like