Part 1: Create a class DateType that has the following member variables: day (int), month(int), and year(int). - Your class should have the following member functions: o Parametrized default constructor. o Destructor o A get function for each member variables - Your class should also have the following friend functions: o Overload insertion operator to print date to screen o Overload extraction operator to read date from user
Part 1: Create a class DateType that has the following member variables: day (int), month(int), and year(int). - Your class should have the following member functions: o Parametrized default constructor. o Destructor o A get function for each member variables - Your class should also have the following friend functions: o Overload insertion operator to print date to screen o Overload extraction operator to read date from user
Part 1: Create a class DateType that has the following member variables: day (int), month(int), and year(int). - Your class should have the following member functions: o Parametrized default constructor. o Destructor o A get function for each member variables - Your class should also have the following friend functions: o Overload insertion operator to print date to screen o Overload extraction operator to read date from user
Part 1: Create a class DateType that has the following member variables: day (int), month(int), and year(int). - Your class should have the following member functions: o Parametrized default constructor. o Destructor o A get function for each member variables - Your class should also have the following friend functions: o Overload insertion operator to print date to screen o Overload extraction operator to read date from user Part 2: Create a class PersonType that has the following member variables: id(int), name(string), birthdate (DateType), and gender (char). - Your class should have the following member functions: o Parametrized default constructor. o Destructor. o A get function for each member variables o Overload == operator to check if two persons have equal ids or not. - Your class should also have the following friend functions: o Overload insertion operator to print person info to screen o Overload extraction operator to read person info from user
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.