I have the following lines of code:
SomeClass a;
SomeClass b = new SomeClass();
SomeClass c = new SomeClass()
{
Foo="sss",
Bar="dddd"
};
Whats the size (in memory) of the class instances a
, b
and c
?
How much memory get assigned to each variable?