Method overriding happens if the sub class method satisfies the below conditions with the Super class method:

  • Method name should be same
  • Argument should be same
  • Return type also should be same
« Back to Glossary Index