• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Realization/Generalization?

 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
What is the difference between generalization and realization? What are the different uml dialgrams in which each are applied?
thanks,
 
Junilu Lacar
Bartender
Pie
Posts: 6547
21
Java Linux Mac Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A superclass is a generalization of its subclass(es). Conversely, a subclass is a specialization of its superclass. UML notation uses a solid line from the subclass to the superclass ending with a hollow triangular arrowhead pointing to the superclass.
A concrete class that implements an interface is a realization of that interface. UML notation is similar to generalization except the line is broken/dashed. The arrowhead points to the interface being realized.
Junilu
[ March 13, 2002: Message edited by: Junilu Lacar ]
 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Junilu ,
So when i encounter questions about generalization and specilization, its almost the same phenomenon i am looking at, right! Sorry if my english is poor!
One more question, While specilizing Abstract class, do we use a solid line or a broken line?
 
Junilu Lacar
Bartender
Pie
Posts: 6547
21
Java Linux Mac Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While specilizing Abstract class, do we use a solid line or a broken line?
Use a solid line.
 
Tor Gul
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hmmmmm....
Is subtyping and Realization synonymous???

If not, how do you differentiate b/w the two...
 
Junilu Lacar
Bartender
Pie
Posts: 6547
21
Java Linux Mac Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is subtyping and Realization synonymous???

If you use "type" in the sense that the GoF book or Martin Fowler does in "UML Distilled", I think that realization would be one form of subtyping. Specialization would be another form of subtyping in this sense too.
Junilu
 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
c.f. interface inheritance with implementation inheritance.
 
Wilfried LAURENT
Ranch Hand
Posts: 269
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also read the article about type and class... I find it quite hard to read and I am not sure I understood everything .
 
isha krishnan
Ranch Hand
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have query regarding realization.

Is it possible to realize an interface in service?
i have seen at some place that service realized an interface(dotten line with hollow arrowhead pointing towards interface).
I know that this service doesnt have any implementaion. so the relation should be incorrect.

Thanks,



 
Junilu Lacar
Bartender
Pie
Posts: 6547
21
Java Linux Mac Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
isha krishnan wrote:
I know that this service doesnt have any implementaion. so the relation should be incorrect.


I don't quite understanding this. You said the service realized an interface. By definition, the service would be an implementation. So what do you mean by "this service doesn't have any implementation"? And what exactly is your question? You asked if it's possible to realize an interface in service but then immediately say that you saw a service realize an interface. Sounds to me like you just answered your own question there. Can you please clarify?
 
isha krishnan
Ranch Hand
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Junilu,

Thanks for prompt reply.I clarified with dev team and they have implementations in service only.So interface has been realized using service. I was missing that information.

Thanks again,
Isha
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic