示例#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;
 }
示例#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);
        }