Inheritance in C++

What is Inheritance in C++ ? C++ strongly supports the concept of re-usability. The C++ classes can be used again in several ways. Once a class has been written and tested, it can be adopted by another programmers. This is basically created by defining the new classes, reusing the properties of existing ones. The mechanism of deriving a new class from an old one is called ‘INHERTTENCE’. How it Works? This is often referred to as ‘IS-A’ relationship. The old class is called ‘BASE’ class and the new one is…

Read More