What is the different type of constructor?

There are two types of constructors in Java: Default constructor (no-arg constructor) Parameterized constructor .

Sizin İçin Seçtik  Why is it important to have constructor in a class?

Leave a Reply

Your email address will not be published. Required fields are marked *