Exemplo n.º 1
0
 internal Course(string name, string building, string room, ProgramOfStudy program, Teacher teacher)
 {
     this.Name           = name;
     this.Building       = building;
     this.Room           = room;
     this.ProgramOfStudy = program;
     this.Teacher        = teacher;
 }
Exemplo n.º 2
0
        private static ProgramOfStudy GetProgramInfo()
        {
            var program = new ProgramOfStudy();

            Console.Write("Name: ");
            program.Name = Console.ReadLine();
            Console.Write("Credit Hours: ");
            program.RequiredCreditHours = PromptForCreditHours();

            return(program);
        }