Base class assignment by derived class

Posted by Dipu710646 under C# on 11/26/2010 | Points: 10 | Views : 3035 | Status : [Member] | Replies : 1
When we delared a base class object like :

BaseClass B = new DerivedClass();

What happens here ?

How does memory gets allocated ?

Which object gets stored in HEAP and whivh one is in Stack ?

Please reply..




Responses

Posted by: T.saravanan on: 11/29/2010 [Member] [MVP] Silver | Points: 25

Login to post response