public void CreateEmployee(int EmployType) { switch (EmployType) { case 1: Manager newManager = new Manager(); break; case 2: Jewler newJewler = new Jewler(); break; } }
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; }