**Don't relay on my solution. Make changes before upload. I will not be responsible for your marks.**
`````````````````````````````````````````````````````````````````````````````````
Instructions:
Please
read the following instructions carefully before submitting assignment:
It
should be clear that your assignment will not get any credit if:
§
The assignment is
submitted after due date.
§
The assignment is
submitted via email.
§
The assignment is
copied from Internet or from any other student.
§
The submitted
assignment does not open or file is corrupt.
§ It is in some format other than .cpp.
Objectives
The objectives of this assignment
is:
- To make you enable to
understand real world scenario and implement it into computer program.
- To give you the idea of practical implementation of some concepts like, Hierarchy of Inheritance, Types of Inheritance, Private Inheritance, Protected Inheritance and Specialization (Restriction) etc.
Problem
Statement
Write
a program containing three classes Person, Student, and Exam for an Examination database using Inheritance. Class Person is the base class, Student is the intermediate base class,
and Exam is the derived class. The
Student class should inherit the properties of Person class whereas, the Exam
class should inherit the properties of Student class (directly) and properties
of Person class (indirectly). Implement the model shown in figure using the
following hints.
Data Members
Person Class:
Name, Gender, Age
Student Class:
RollNo, Subject
Exam Class:
Sub1Marks, Sub2Marks
Member Functions
You
are required to write the following member functions for all three classes:
readData()
displayData()
Note: You are required to submit your assignment solution in .CPP
format.
Post a Comment
Don't Forget To Join My FB Group VU Vicky
THANK YOU :)