Java Method Overriding

Method overriding:

  • If a method inherited from the superclass requires a different definition other than the definition provided in the superclass, then the method can be redefined or overridden.
  • The process of redefining/overriding the method is called as Method overriding.
  • The overridden method must have the same signature as that of the parent class method.



Parrot is flying


Share this website !!!
Facebook Twitter Linkedin