Re: Object creation
From: EventHelix.com (eventhelix_at_gmail.com)
Date: 01/24/05
- Next message: chris: "Re: Superbasic efficiency question"
- Previous message: Peter Koch Larsen: "Re: Superbasic efficiency question"
- In reply to: Guriks: "Object creation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 24 Jan 2005 05:07:02 -0800
I assume you are asking if A should be contained or referenced as a
pointer.
Directly adding "a" as a member variable makes the design simple as
you do not need to worry about allocating memory for a, it is allocated
within b.
The disadvantage here is that you have anybody using the class B has to
directly or indirectly include the header file containing class A.
Deepa
-- http://www.EventHelix.com/EventStudio EventStudio 2.5 - Automate sequence diagram generation
- Next message: chris: "Re: Superbasic efficiency question"
- Previous message: Peter Koch Larsen: "Re: Superbasic efficiency question"
- In reply to: Guriks: "Object creation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|