Can constructor be overloaded vs overridden?

Neither. You overload a constructor by writing multiple constructors in the same class, not in inherited classes. And constructors aren’t subject to overriding .

Sizin İçin Seçtik  Why do we use constructor overloading in Java?

Leave a Reply

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