Пример #1
0
        public DegreeProgram getProgramInformation()
        {
            string name;
            string deptHead;

            Console.WriteLine("Enter Program Name:");
            name = Console.ReadLine();
            Console.WriteLine("Enter name of the department head:");
            deptHead = Console.ReadLine();

            DegreeProgram var = new DegreeProgram(name, deptHead);

            return(var);
        }
Пример #2
0
 public void printProgramInformation(DegreeProgram var)
 {
     Console.WriteLine("Program Name: {0}", var.Name);
     Console.WriteLine("Department Head: {0}", var.DeptHead);
 }