Two questions of design

From: Busin (businm_at_fidrep.com)
Date: 06/27/04


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!