C++ Inheritance Question: Download Questions PDF
Explain the difference between Overriding vs. overloading?
![C++ Inheritance Interview Answer C++ Inheritance Interview Question](https://globalguideline.com/public/images/interview/34.png)
Answer:
Overloading helps to create different behaviors of methods with the same name and scope. For instance we can overload a method to return float values and integer values.
Overriding on the other hand changes the behavior of a class to make it behave different than its parent class.
Overriding on the other hand changes the behavior of a class to make it behave different than its parent class.
Download C++ Inheritance Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain about overriding? | Give example of pure virtual functions? |