Inheritance and Polymorphism: (Multiple Inheritance, Diamond Problem)
Inheritance and Polymorphism: (Multiple Inheritance, Diamond Problem)
Task 2:
Implement this class and check requirements (at Task 3)
Person
//content of Person
Employee // Employee is a person
Private:
string fName, lName;
double salary;
int main()
{
//pointer to base class object
Employee* emp;
Task 3:
Requirements:
Implement the class by using some basic private members according
to the class type, default and parametrized constructors and call each
constructor.
Submit one cpp file with simple multiple inheritance and the diamond
problem.
Submit second with multiple inheritance and the solution of the
diamond problem.
-Task3DiamondProblem.cpp
-Task3DiamondProblemSolution.cpp
Task 4: