Method overriding comes under run time polymorphism. There are some conditions in method overriding:

  • Two classes have the method with the same name. 
  • The number of parameters should be the same.
  • The return type of the parameter should be the same.

If these conditions are satisfied then run-time will occur polymorphism.