//in this functions always return constant name and id public void Show(Student a) { year++; Console.WriteLine(a.AccessName() + " " + a.AccessId() + " " + year); }