public static void Main()
Student s1 = new Student();
Console.WriteLine("Sudent Id= {0} and Name= {1}", s1.GetId(), s1.GetName());
private int passMark = 35;
public void SetId(int id)
throw new Exception("student id cannot be negative");
public void SetName(string name)
if(string.IsNullOrEmpty(name))
throw new Exception("name cannot be empty");
if (string.IsNullOrEmpty(name))