In OOPs simply means intentionally we are super seeding method with of a specific signature present in the parent class with same signatures method in the child class .
Method overriding is nothing but creating same name method in more than one class,
It is basically we used in Runtime polymorphism
Ex:
class A{
public void show();
}
class B implements A{
public void show(){
System.out.println("eaglewebworld");
}
}
Comments
Post a Comment