Mammal *pDog = new Dog;
here Mammal is base class and Dog is it's derived class
In such declaration destructor is not called why is it rule of C++?
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 9 of 9
Thread: inheritnceThreaded View
|
Click Here to Expand Forum to Full Width |