コード例 #1
0
ファイル: Program.cs プロジェクト: B-Dana/Basic_C_sharp
        static void Main(string[] args)
        {
            IQuittable emplQuit = new Employee();

            emplQuit.Quit();
            Console.ReadLine();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            IQuittable quittable = new Employee();

            quittable.Quit();
            Console.ReadLine();
        }
コード例 #3
0
        static void Main(string[] args)
        {
            Employee employee = new Employee();

            employee.FirstName = "Sample";
            employee.LastName  = "Student";
            employee.SayName();
            employee.Quit();
        }
コード例 #4
0
        static void Main(string[] args)
        {
            Employee employee = new Employee()
            {
                ID = 567890
            };

            employee.Quit();
        }
コード例 #5
0
        static void Main()
        {
            Employee employee = new Employee();

            employee.Quit();

            IQuittable emIqt = new Employee();

            emIqt.Quit();
            Console.ReadLine();
        }
コード例 #6
0
        static void Main(string[] args)
        {
            IQuittable Forest = new Employee()
            {
                FirstName = "Forest", LastName = "Moher"
            };

            Forest.Quit();

            Console.ReadLine();
        }
コード例 #7
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();
        }
コード例 #8
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();
        }
コード例 #9
0
        static void Main(string[] args)
        {
            Employee employee = new Employee()
            {
                FirstName = "Sample", LastName = "Student"
            };

            employee.SayName();

            IQuittable iQuit = new Employee();

            iQuit.Quit();

            Console.ReadLine();
        }
コード例 #10
0
        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();
        }
        static void Main(string[] args)
        {
            IQuittable quit = new Employee("Sample", "Student");

            quit.Quit();
        }
コード例 #12
0
ファイル: Program.cs プロジェクト: jweaver156/C-Sharp-Drills
        static void Main(string[] args)
        {
            IQuittable quittable = new Employee();

            quittable.Quit();
        }