class A { public A() { Console.WriteLine("Default A"); } public A(int a) { Console.WriteLine("Parameterized A"); } } class B : A { public B() { Console.WriteLine("Default B"); } public B(int a) { Console.WriteLine("Parameterized B"); } }
How much memory will allocate if we call: A a = new B(); and A a = new A();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)