This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design 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