filmov
tv
Method Overriding in Java Introduction - Part 1 || Java Tutorials in Telugu

Показать описание
Method Overriding:-
1) If the child class not satisfy the parent class method implementation then it is possible to override that method in the child class based on child class requirement.
2) If we want to achieve method overriding we need two classes(child and parent).
3) In the overriding concept the child class and parent class method signatures must be same otherwise we are getting compilation error.
The parent class method is called----overridden method
The child class method is called-----overriding method
1) If the child class not satisfy the parent class method implementation then it is possible to override that method in the child class based on child class requirement.
2) If we want to achieve method overriding we need two classes(child and parent).
3) In the overriding concept the child class and parent class method signatures must be same otherwise we are getting compilation error.
The parent class method is called----overridden method
The child class method is called-----overriding method