Question: what is the difference between inheritance and overriding methods?
Answer: Inheritance and Overriding methods. Inheritance enable us to define a class that takes all the functionality from parent class and allows us to add more. Method overriding occurs simply defining in the child class a method with the same name of a method in the parent class .