Showing posts with label single inheritance. Show all posts
Showing posts with label single inheritance. Show all posts

Monday, January 1, 2018

WAP to implement the concept of single inheritance in C++. Create a class Person and inherit class Student from it and display the information of a student by calculating his grade.


Aim :  WAP to implement the concept of single inheritance in C++.  Create a class Person and inherit class Student from it and display the information of a student by calculating his grade.

CODE:

OUTPUT: