(Solved) : Inheritance Composition Class Person String Firstname String Lastname Date Dob Public Pers Q27860733 . . .
Inheritance and composition
class person { string firstName; string lastName; date DOB;public: person(string f, string l, date &bday):DOB(bday)
{
firstName =f;
lastName= l; }
};
class date{ int day; int month; int year; };
1. Define a constructor for date
2. Define a constructor for person
3. Create a class student that inherits from person. Define itsconstructor
Expert Answer
Answer to Inheritance Composition Class Person String Firstname String Lastname Date Dob Public Pers Q27860733 . . .
OR