Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Student student = new Student("Ayana", "18BD110504");  // sozdau ekzemplyar klassa Student

            Console.WriteLine("GETTER");
            Console.WriteLine(student.getName());
            student.setName("Daulet");
            if (student.year > 1)
            {
                student.setYear(Console.ReadLine());
            }
            Console.WriteLine(student);
            student.Incr();

            Console.ReadKey();
        }