예제 #1
0
        static void Main(string[] args)
        {
            Employee employee = new Employee();

            employee.FirstName = "Sample";
            employee.LastName  = "Student";
            employee.SayName();
            IQuittable employeeQuit = new Employee();

            employeeQuit.Quit();
            Console.ReadLine();
        }
예제 #2
0
        static void Main(string[] args)
        {
            IQuittable name      = new Employee();
            Employee   employees = new Employee()
            {
                FirstName = "Sample",
                LastName  = "Student"
            };

            //hitting enter quits the program
            employees.SayName();
            Console.ReadLine();
            name.Quit();
        }