Question: CH program to implement Inheritance using the below given information. Create the class Student with Student number (snum), Student(sname) and degree (deg) as data members

CH program to implement Inheritance using the below given information. Create the class Student with Student number (snum), Student(sname) and degree (deg) as data members and the member functions as: getstudo: gets snum, sname and deg. showstudo: prints snum, sname and deg . Create the class Marks with marks in three subjects m1, m2, m3 as data members and the member functions as: getmarko: gets mi, m2 and m3 showmarko: prints mi, m2 and m3 Derive the class Marks from the class Student in public mode
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
