Exemple #1
0
        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();
        }