Is it possible to overload a constructor in Java?

Yes! Java supports constructor overloading . In constructor loading, we create multiple constructors with the same name but with different parameters types or with different no of parameters.

Sizin İçin Seçtik  Okul genelinde yapılan sosyal etkinlikler nelerdir?

Leave a Reply

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