Re: [Dev-C++] Derived Classes & Destructors
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Jesse H. <jes...@gm...> - 2004-06-21 15:50:38
|
Yes, and yes: http://www.csse.monash.edu.au/~jonmc/CSE2305/Topics/05.09.Inheritance/html/text.html#what_happens_when_a_derivedclass_object_is_created_and_destroyed On Mon, 21 Jun 2004 11:24:27 -0400, David McKen <dml...@co...> wrote: > > If I have a class B that inherets from a class A and I create an object > of type B (call it instance_B). > > when instance_B is destroyed is the destructor for class A also called? > > If so does the same thing happen for constructors? > > ------------------------------------------------------- > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > -- Jesse Hallam University of Waterloo Freshman |