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 ]
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?
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
c.f. interface inheritance with implementation inheritance.
Regards,
Pho
Wilfried LAURENT
Ranch Hand
Joined: Jul 13, 2001
Posts: 269
posted
0
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
Joined: Nov 10, 2008
Posts: 50
posted
0
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.
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
Joined: Nov 10, 2008
Posts: 50
posted
0
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.