It is a exsample in the book,but was not completed,i write the CAuto.cpp and CTaxi.cpp myself.
But when I try to compiler it,I get this erro Msg \Adapter\ctaxiAdapter.cpp|2|undefined reference to `CAuto::~CAuto()'|
I guess somting is wrong with the Virtual destrucktor.
How can I slove this problem.
you already know about inheritance and upcasting a dereived class to its bass class?...
if u got an pointer of the base class, that points to a child and then call the destructor - which is not virtual- u won´t reach the dereived class destructors...