• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Realization/Generalization?

 
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While specilizing Abstract class, do we use a solid line or a broken line?
Use a solid line.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hmmmmm....
Is subtyping and Realization synonymous???

If not, how do you differentiate b/w the two...
 
Junilu Lacar
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 782
Python Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
c.f. interface inheritance with implementation inheritance.
 
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Clowns were never meant to be THAT big! We must destroy it with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic