Question: Create a class student contains roll number, name and course as data member and Input_student and display_student as member function. A derived class exam is
Create a class student contains roll number, name and course as data member and Input_student and display_student as member function. A derived class exam is created from the class student with publicly inherited. The derived class contains mark1, mark2, mark3 as marks of three subjects and input_marks and display_result as member function.
Each one of these classes should contain 2 constructors (default and argument constructors).
implement all the methods in implementations files
create a a cpp file with a main function to create 2 exam objects one using a default constructor and the other one using the argument constructor.
Test all of the methods.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
