What is constructor overloading in Java?

Constructor overloading in Java is a technique of having more than one constructor with different parameter lists . They are arranged in a way that each constructor performs a different task. They are differentiated by the compiler by the number of parameters in the list and their types.

Sizin İçin Seçtik  Ilaçlarda 2 çarpı 1 ne demek?

Leave a Reply

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