Map
Index
Random
Help
th

Quote: delete objects of a derived class with a virtual destructor in the base class; it will know the size of the object

topics > all references > references sa-sz > QuoteRef: stroB_1991 , p. 216



Topic:
finalization of data

Quotation Skeleton

[Delete objects of a derived class] by adding a virtual destructor to the … Even an empty destructor will do: [e.g.,] 'employee::~employee(){}' This will cause the deallocation to be done from … [of the derived class]) … In general, it is wise to supply a … [with virtual functions].   Google-1   Google-2

Copyright clearance needed for quotation.


Related Topics up

Topic: finalization of data (10 items)

Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.