Hi,
I have the following code.
class CVehicle
{
}
class CCar : public CVehicle
{
}
int main()
{
CVehicle *m_VehicleType;
CCar m_Car;
m_VehicleType = &m_Car;
delete(m_VehicleType); // Can i do this way
}
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 7 of 7
Thread: Clarify me on this exampleThreaded View
|
Click Here to Expand Forum to Full Width |