void Start()
        {
            Programmer programmer = new Programmer("John", Specialty.Csharp);
            //programmer.Print();
            Team team = new Team();

            team.AddProgrammer(new Programmer("Peter", Specialty.Csharp));
            team.AddProgrammer(new Programmer("Kevin", Specialty.Java));
            team.AddProgrammer(new Programmer("John", Specialty.Csharp));
            team.AddProgrammer(new Programmer("Susan", Specialty.Java));

            //team.PrintAllTeamMembers();
            team.AddProgrammer(new Programmer("Emma"));
            team.PrintAllTeamMembers();

            Console.ReadKey();
        }
Example #2
0
        bool Start()
        {
            Programmer p1 = new Programmer("Hank", Specialty.PHP);
            Programmer p2 = new Programmer("Peter", Specialty.Java);
            Programmer p3 = new Programmer("Samantha", Specialty.HTML);
            Programmer p4 = new Programmer("Astrid");

            p1.Print();
            Team team = new Team();

            team.AddProgrammer(p1);
            team.AddProgrammer(p2);
            team.AddProgrammer(p3);
            team.AddProgrammer(p4);
            team.PrintAllTeamMembers();

            return(ProgramTools.LoopProgram());
        }