Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago