Properties
 public class student
{
    public int id { get; set; }
    public mark mark { get; set; }
}
public class mark
{
    public int value { get; set; }
}
I'm creating object as below
student x=new student();
x.id=1 --> default value 0
but when i access x.mark.value it throwing exception(x.mark is null)
Doesn't initiate by default? any reason?
 
     
     
     
     
     
     
     
    