Question: in c++ Objectives Understand and practice o Inheritance o Polymorphism Virtual vs. non-virtual functions Abstract classes O o General Notes (Important): 1. In this assignment,

 in c++ Objectives Understand and practice o Inheritance o Polymorphism Virtual

vs. non-virtual functions Abstract classes O o General Notes (Important): 1. In

this assignment, you are given part of the implementation as a help

in c++

Objectives Understand and practice o Inheritance o Polymorphism Virtual vs. non-virtual functions Abstract classes O o General Notes (Important): 1. In this assignment, you are given part of the implementation as a help 1.1. Feel free to use it 1.2. It is not complete. You will need to address any requirements that are not implemented 2. This is an individual assignment. 2.1. You are not allowed to work in groups 2.2. make sure you do not share you code with any other student 2.3. It does not matter if you give your code to other students or they get it without your permission! In both cases that would be considered as cheating. 2.4. Cheating is strictly prohibited and will cost you severely, possibly the whole course or even the semester 3. You should submit your work via e-learning as one zip/tar file that has 3.1. header files *.h: for class interface (one for each class) 3.2. source files *.cpp: for class implementation (one for each class) 3.3. main.cpp: main program (only one) 3.4. guard your header files against multiple inclusions 4. The member functions that do not modify data members should be declared and defined as const 5. Write any type of constructors, setters, or getters your program might need. You are asked to implement o class hierarchy for students in a university. There are two categories of students, Bachelor and Master. You need to implement a base class Student, and two derived classes, one for the Bachelor students and another for the Master stud nts. Assume that each student in the university has a studenti, a name, a gpa, and a major. Bachelor students are required to do o graduation project and training at some company. Master students are required to do a thesis. Bachelor student rating is different from Master student rating. Question 2 (25 Marks): Define a new class called Bachelor Student. This class should: 1. Publicly Inherit (derive) class Student 2. include two new string private data members a. project_title b. training company 3. Define a parameterized constructor to initialize all member variables (id, gpa, name,major, project_title, training company) 4. Override getRating function such that it returns Excellent for GPA >=84, Very good for [76 to

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!