• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in JAVA by
Q:
What is meant by Method Overriding?

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

The key benefit of overriding is that the Sub class can provide some specific information about that sub class type than the super class.

Related questions

0 votes
asked May 24, 2019 in JAVA by rajeshsharma
0 votes
asked May 24, 2019 in JAVA by rajeshsharma
...