using System.Collections;
public Student(string name, int age, double mark)
return "The name of the student is "+Name+".He is "+Age+" years old. He scored "+Mark+" in the exam";
public static void Main()
Student S1 = new Student("Abhi", 17, 98);
Student S2 = new Student("George", 20, 90.5);
Student S3 = new Student("Kevin", 22, 99.5);
Hashtable studHT = new Hashtable();
string student1 = ((Student)studHT[1]).GetData();
Console.WriteLine(student1);
string student2 = ((Student)studHT[2]).GetData();
Console.WriteLine(student2);