static void Main(string[] args)
        {
            Employee employee = new Employee();

            employee.FirstName = "Sample";
            employee.LastName  = "Student";
            employee.SayName();
            employee.Quit();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Employee employee = new Employee();

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

            quittable.Quit();
            Console.ReadLine();
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            Employee human = new Employee();

            human.firstName = "Sample";
            human.lastName  = "Student";
            human.SayName();

            IQuittable example = new Employee();

            example.Quit();

            Console.ReadLine();
        }
        static void Main(string[] args)
        {
            Employee employee = new Employee()
            {
                FirstName = "Sample", LastName = "Student"
            };

            employee.SayName();

            IQuittable iQuit = new Employee();

            iQuit.Quit();

            Console.ReadLine();
        }
        static void Main(string[] args)
        {
            Employee employee1 = new Employee()
            {
                FirstName = "Sample", LastName = "Student", Id = 54321
            };
            Employee employee2 = new Employee()
            {
                FirstName = "Sample", LastName = "Student", Id = 12345
            };

            employee1.SayName();
            employee2.SayName();
            Console.WriteLine(employee1.Id == employee2.Id);
            Console.WriteLine(employee1.Id != employee2.Id);
            IQuittable quittable = new Employee();

            quittable.Quit();
            Console.ReadLine();
        }