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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!