Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            IQuittable obj = new Employee()
            {
                firstName = "Sample", lastName = "Student"
            };

            obj.Quit();

            Console.Read();
        }
Ejemplo n.º 2
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();
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            IQuittable employee1 = new Employee()
            {
                FirstName = "Gunnar", LastName = "Andersen", Id = 1
            };
            Employee employee2 = new Employee()
            {
                FirstName = "Timothy", LastName = "Tugmutton", Id = 2
            };

            employee1.Quit(employee2);
        }
Ejemplo n.º 4
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();
        }
Ejemplo n.º 5
0
        static void Main(string[] args)
        {
            IQuittable x = new Employee();

            x.Quit(x);
        }
Ejemplo n.º 6
0
        static void Main(string[] args)
        {
            IQuittable quittable = new Employee();

            quittable.Quit();
        }