Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Student alpachino = new Student(Console.ReadLine(), Console.ReadLine());

            Console.WriteLine(alpachino.Getname());        //Call the function Getname to access the name and Show it
            Console.WriteLine(alpachino.GetId());          //Call the function GetID to access to ID and show it
            Console.WriteLine(alpachino.GetYearOFStudy()); // Call the function GetYearOFStudy to increase the year of the study
            Console.ReadKey();
        }