C++ Program to demonstrate example of Single Inheritance