Two questions of design
From: Busin (businm_at_fidrep.com)
Date: 06/27/04
- Next message: Shayne Wissler: "Re: Fans of Template Method with protected variable?"
- Previous message: H. S. Lahman: "Re: Copliens Handle/Body Hierarchy Idiom"
- Next in thread: Bob Hairgrove: "Re: Two questions of design"
- Reply: Bob Hairgrove: "Re: Two questions of design"
- Reply: Phlip: "Re: Two questions of design"
- Reply: H. S. Lahman: "Re: Two questions of design"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 27 Jun 2004 21:43:35 GMT
In UML, for example, class A and B are related with dashed line with the end
of SOLID triangle or EMPTY triangle. What's the different meaning?
[A]-----|>[B]
There are class A and B.
If class C needs some functions from both A and B, so two choices: 1. doing
multiple inheritances from both A and B. 2. A contains B.
Is there any other choices? Should the decision be made on "has-a" and
"is-a"?
Thanks!
- Next message: Shayne Wissler: "Re: Fans of Template Method with protected variable?"
- Previous message: H. S. Lahman: "Re: Copliens Handle/Body Hierarchy Idiom"
- Next in thread: Bob Hairgrove: "Re: Two questions of design"
- Reply: Bob Hairgrove: "Re: Two questions of design"
- Reply: Phlip: "Re: Two questions of design"
- Reply: H. S. Lahman: "Re: Two questions of design"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]