Can constructor be overloaded and overridden in Java?

It is never possible . Constructor Overriding is never possible in Java. This is because, Constructor looks like a method but name should be as class name and no return value.

Sizin İçin Seçtik  What is a coverage map used for?

Leave a Reply

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

Can constructor be overloaded and overridden in Java?

It is never possible . Constructor Overriding is never possible in Java. This is because, Constructor looks like a method but name should be as class name and no return value.

Sizin İçin Seçtik  Where is default constructor in Java?

Leave a Reply

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