Overriding vs. overloading

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.

Overriding vs. overloading.

- Overloading means having methods with same name but different signature.
- Overriding means rewriting the virtual method of the base class.
Static vs. dynamic binding - C++
Static vs. dynamic binding - Binding means connecting the function call to a function implementation...
What is abstract class?
What is abstract class? - A class whose object can't be created is abstract class...
Vector vs. Map
Vector vs. Map - In a vector, all the elements are in a sequence...
Post your comment