Explain function overriding.
Answers
Answered by
1
Explanation:
Function overriding is a feature that allows us to have a same function in child class which is already present in the parent class. A child class inherits the data members and member functions of parent class, but when you want to override a functionality in the child class then you can use function overriding.
Answered by
2
Answer:
Overriding occurs when two methods have the same method name and parameters. One of the methods is in the parent class, and the other is in the child class
Explanation:
have a great day
Similar questions