Can a constructor have arguments?

A Constructor with arguments(or you can say parameters) is known as Parameterized constructor . As we discussed in the Java Constructor tutorial that a constructor is a special type of method that initializes the newly created object.

Sizin İçin Seçtik  What is no constructor in Java?

Leave a Reply

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