Exemple #1
0
        static void Main(string[] args)
        {
            Student s = new Student();

            Console.WriteLine(s);
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Student s = new Student(); //Иницифлизируем данные с помощью конструктора:0

            s.IncrementOfYear();       //метод возвращает данные
        }
Exemple #3
0
        static void Main(string[] args)
        {
            Student a = new Student("Kamila", "ID120");

            a.GetInfo();
        }
Exemple #4
0
 //in this functions always return constant name and id
 public void Show(Student a)
 {
     year++;
     Console.WriteLine(a.AccessName() + " " + a.AccessId() + " " + year);
 }
 public void AddStudent(Student st)
 {
     students.Add(st);
 }