All Articles

Inheritance in C++

Inheritance is the property of representing a base class and its derived classes as a hierarchy of classes with the most general functions of the class vested at the base or parent class and then specifying added qualities in each derived class. Below is an example of how we can represent a base class and…

All Articles

Function Overloading in C++

The principle of function overloading helps to implement polymorphism in C++ in which two or more functions share the same name (overloaded functions) and perform a general action but using different methods or approaches. The overloaded functions must differ in their function/method parameters/signatures and are defined and coded separately. They may or may not differ…