[oclug] [OT] UML question -- not UserModeLinux, the modeling language

Bart Trojanowski bart-oclug at jukie.net
Fri Aug 2 16:12:11 EDT 2002


When drafting a class hierarchy should one show that a class overrides a
method from a super class?

+---------+            +---------+   
+  A      |            +  A      |   
+---------+            +---------+   
+ +foo()  |            + +foo()  |   
+---------+            +---------+   
    ^                      ^   
   / \                    / \   
   ---                    ---   
    |                      |   
    |                      |   
+---------+            +---------+   
+  B      |            +  B      |   
+---------+            +---------+   
+ +foo()  |            +---------+   
+---------+

Which is correct?

Next question: the '+' that precedes a class member means it is public.
A '-' means private, and a # means protected.  An absence of a prefix
means it is an implementation.  I am ok with the first 3 as they map
well to Java.  What is an implementation member function/attribute?

In my hierarchy above, class A is simply an abstract interface class
with some generic functionality (ie it returns 'not implemented' from
most of it's member functions) which are overridden by the subclasses.
Is it appropriate to make foo() an implementation member?

TIA.

B.

-- 
				WebSig: http://www.jukie.net/~bart/sig/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://tux.oclug.on.ca/pipermail/oclug/attachments/20020802/b08fb87e/attachment.bin


More information about the OCLUG mailing list