What are constructor parameters?

The parameterized constructors are the constructors having a specific number of arguments to be passed . The purpose of a parameterized constructor is to assign user-wanted specific values to the instance variables of different objects. A parameterized constructor is written explicitly by a programmer.

Sizin İçin Seçtik  What is the constructor and why use it?

Leave a Reply

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