static void Main(string[] args) { string n = Console.ReadLine(); string i = Console.ReadLine(); Student a = new Student(n, i); //new object of class Student b = new Student("Mask", "19BD99"); a.Show(a); b.Show(b); a.Show(a); //call of function }