using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ch6_9
{
    class Employee
    {
        private string firstName;
        private string lastName;
        private Date birthDate;
        private Date hireDate;
        // constructor to initialize name, birth date and hire date
        public Employee(string first, string last,
           Date dateOfBirth, Date dateOfHire)
        {
            firstName = first;
            lastName = last;
            birthDate = dateOfBirth;
            hireDate = dateOfHire;
        } // end Employee constructor
        // convert Employee to string format
        public string ToEmployeeString()
        {
            return string.Format("{0}, {1}  Hired: {2}  Birthday: {3}",
               lastName, firstName, hireDate, birthDate);
        } // end method ToEmployeeString
    }
}
