private int _passmark=35;
throw new Exception("this id is not valid");
get{ return this._passmark;}
if(string.IsNullOrEmpty(value))
throw new Exception("name can't be null or empty");
public static void Main()
student std=new student();
Console.WriteLine("name is {0} \nid is {1}",std.name,std.id);