Can we call super method in Java?

Private methods of the super-class cannot be called. Only public and protected methods can be called by the super keyword . It is also used by class constructors to invoke constructors of its parent class.

Sizin İçin Seçtik  How do you cheat in Project Zomboid?

Leave a Reply

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