using class diagram in VS 2005


T

Tony Johansson

Hello!

I try to use the class diagram feature in VS 2005 but the drawing is
different se below.

If I have an Interface that "implement" two other interface these vill be
shown with arrows pointing to the top interface which is correct.

If I instead have a class that implement an interface these will not be
shown with arrows in the class diagram. What is the reason for not using
arrows as in the example when having only interfaces.

I just wonder which is best to use explicit inherit implementation or
implicit implementation.

I suppose that you will say that sometimes is the explicit inherit
implementation best and sometimes is the implicit inherit implementation
best.


//Tony
 
Ad

Advertisements

M

Marc Gravell

If I instead have a class that implement an interface these will not be
shown with arrows in the class diagram.
Looks like fairly standard UML-representation to me... the arrow
implies inheritance, which isn't the case for an interface
implementation (the lollipop). I don't know what other tools would
offer, but I've never found this a problem.
I just wonder which is best to use explicit inherit implementation or
implicit implementation.

If it makes sense for a regular caller to use the methods, then make
it implicit (since you want the public methods anyway).
If the interface is only used in specific circumstances
(ICustomTypeDescriptor, ITypedList, for example) - then make it
explicit.
If the names would be confusing, or you implement 2 interfaces with
the same method name (but different meaning) then use explicit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top