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  KYK bursu ne zaman yatacak 2022?

Leave a Reply

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