Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!milano!cadillac!redcloud!rpj From: rpj@redcloud.cad.mcc.com (Rich Johns) Newsgroups: comp.lang.c++ Subject: do destructors descend hierarchy? Message-ID: <1570@cadillac.CAD.MCC.COM> Date: 3 Jul 89 16:29:01 GMT Sender: news@cadillac.CAD.MCC.COM Lines: 21 Assume the class Blue, which is a PrimaryColor, which is a Color. All three classes have destructors. If I have a Blue b allocated from free store: Blue* b = new Blue; Now if I: delete b; will the destructors for PrimaryColor and Color be called? Rich Johns, MCC CAD Program | 3500 W. Balcones Center Dr., Austin, TX 78759 ARPA: johns@mcc.com | Phone: [512] 338-3714 UUCP: {uunet,harvard,gatech,pyramid}!cs.utexas.edu!milano!cadillac!johns