Using Binary Tree Provided Textbook Create Class Called Date Class Following Data Members Q37105275

Using the binary tree provided in the textbook.

Create a class called Date. The class will have the followingdata members

  • day as integer
  • month as integer
  • year as integer

Methods needed

  • Accessors and mutators
  • Able to print date in the format January 1, 2018

Create a class called Person. This class will have the followingdata members (protected)

  • name as string
  • address as string
  • city as string
  • state as string
  • phone as string

It will have accessor and mutators for the data members.

Create a class called EmployeeInfo which inherits from thePerson class. This class will have the following data members(private).

  • id as integer
  • hireDate as Date (first class listed)
  • empInfo as Person

It will have accessor and mutators for

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.