예제 #1
0
        public void CreateEmployee(int EmployType)
        {
            switch (EmployType)
            {
            case 1:
                Manager newManager = new Manager();
                break;

            case 2:
                Jewler newJewler = new Jewler();
                break;
            }
        }
예제 #2
0
        static void Main(string[] args)
        {
            Jewler rob = new Jewler();

            rob.GetNumID                 = 123456;
            rob.GetFirstName             = "Robert";
            rob.GetLastName              = "Jr";
            rob.GetMerchandisePermission = true;

            Jewler stacy = new Jewler();

            stacy.GetNumID                 = 654321;
            stacy.GetFirstName             = "Stacy";
            stacy.GetLastName              = "IsYourMom";
            stacy.GetMerchandisePermission = false;
        }