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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started