Answers

Question and Answer:

  Home  C++ Inheritance

⟩ Explain the difference between Overriding vs. overloading?

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.

 193 views

More Questions for you: