Method Overriding in Java

Day 6: Method Overriding After inheritance, the next important idea is method overriding. Sometimes a child class inherits a method from a parent class, but needs to give it a more specific behavior. That is exactly what overriding does. The child class keeps the same method name and parameters, but changes what the method actually does. This is one of the key ideas behind flexibility in OOP. #Java #OOP #Programming #SoftwareEngineering #ComputerScience #koofkee

  • graphical user interface, text

To view or add a comment, sign in

Explore content categories