Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how polymorphism is shown in uml

 
mudassir shahab
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can we show polymorphism in uml diagram
can we show polymorphism in class diagram..if yes, how??
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "show polymorphism"?
In Java, all instance methods are polymorphic.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic