Esempio n. 1
0
        static void Main(string[] args)
        {
            Console.Write("Enter Firstname: ");
            string fName = Console.ReadLine();

            Console.Write("Enter Lastname: ");
            string lName = Console.ReadLine();

            Console.Write("Enter Email: ");
            string mail = Console.ReadLine();



            Console.Write("Enter Year: ");
            int year = int.Parse(Console.ReadLine());

            Console.Write("Enter Month: ");
            int month = int.Parse(Console.ReadLine());

            Console.Write("Enter Day: ");
            int day = int.Parse(Console.ReadLine());

            DateTime getDob = new DateTime(year, month, day);
            Person   person = new Person(fName, lName, mail, getDob);

            GetDob(person.DateOfBirth);

            Console.Write("Employeee session");

            Console.Write("Enter Firstname: ");
            string eFName = Console.ReadLine();

            Console.Write("Enter Lastname: ");
            string eLName = Console.ReadLine();

            Console.Write("Enter Email: ");
            string email = Console.ReadLine();

            Console.Write("Payment Address");
            string pAddr = Console.ReadLine();


            Employee emp = new Employee(eFName, eLName, email, getDob, 5000M, pAddr);

            emp.PaymetAddress();
            emp.RetrieveAmountDue(4000);
        }