aspose file tools*
The moose likes OO, Patterns, UML and Refactoring and the fly likes how polymorphism is shown in uml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "how polymorphism is shown in uml" Watch "how polymorphism is shown in uml" New topic
Author

how polymorphism is shown in uml

mudassir shahab
Ranch Hand

Joined: Oct 13, 2003
Posts: 54
how can we show polymorphism in uml diagram
can we show polymorphism in class diagram..if yes, how??
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
What do you mean by "show polymorphism"?
In Java, all instance methods are polymorphic.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
You can infer polymorphism in places. When you see B inherit from A or implement interface A, you get a strong clue hint polymorphic behavior is desired. When you see a parameter declared as A and then look in the class hierarchy and see a number of classes inherit from A or implement A, same thing.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how polymorphism is shown in uml