예제 #1
0
파일: Program.cs 프로젝트: krestina18/pp2
        static void Main(string[] args)
        {
            Student Info = new Student(Console.ReadLine(), Console.ReadLine());

            Console.WriteLine(Info.GetName());        // Call The function GetName to access the Name and Show it
            Console.WriteLine(Info.GetId());          // Call the function GetID to access the Id of the Student and Show it
            Console.WriteLine(Info.GetYearOfStudy()); // Call the Functon GetYearOfStudy to increase the year of the study
            Console.ReadKey();
        }