i had a doubt, suppose in my class (say containing class) i have a field instance which is an object of reference type (say another class as example, call it inner class), at run time when the object of containing class is created on the heap, does containing class stores the entire inner class object in it, or containing class stores the reference of the inner class in it ?
internal class ContaingClass
{
private InnerClass objInner;
}
would object of ContainingClass have reference of objInner or shall store entire objInner with all it's data in it?