Can we call superclass constructor from subclass constructor in Java?

You cannot call a sub -class constructor from a super-class constructor.

Sizin İçin Seçtik  What are constructors with example?

Leave a Reply

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