public void Show(Student a) //method to show informations about student { year++; Console.WriteLine(a.Accessname() + " " + a.Accessid() + " " + year); }