Prasan
Posts: 2
Nickname: psamty10
Registered: Mar, 2004
|
|
Re: UML Notation Question
|
Posted: Mar 21, 2004 9:38 AM
|
|
IMHO... modelling something at the functional level is neither necessary nor practical. UML is not code, so it doesnt have to exactly match what the function represents, just give a general idea of what it does.
The reason nothing clean hits you to diagram it is because ideally youd be using virtual functions (the default in java). If the classes in the collection all derive from the same ABC, adding a virtual function to execute that exact sequence would make the code look cleaner, and would also solve your UML modelling problem.
And if you really want to exploit polymorphism to the greatest extent, thats exactly what you should do...
|
|