Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: UML
I want to know the clear difference between "Generalization" and "Specialization" in UML?
 
I have gone through the internet but I am unable to get the exact difference.
 
Could you please explain with an example.
Posted 2-Jun-11 21:19pm
sacraj1K
Edited 2-Jun-11 21:40pm
Dalek Dave431.5K
v2
Comments
Dalek Dave at 3-Jun-11 3:40am
   
Edited for Grammar, Syntax and Readability.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

"Generalization is the process of extracting shared characteristics from two or more classes, and combining them into a generalized superclass. Shared characteristics can be attributes, associations, or methods."
 
"In contrast to generalization, specialization means creating new subclasses from an existing class."
 
Those two lines were excerpts from this article [^]- an excellent one. it explains all nuances well enough.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Generalization
---------------
If many similar existing objects are combined to form a superclass to do the job of its subclass', then it is known as Generalization
 
specialization
--------------
if some new subclasses are created from an existing superclass to do specific job of the superclass, then it is known as specialization.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

I would advice to read this CodeProject article, it explains those concepts pretty clearly:
OOP and UML[^].
 
—SA
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

http://design-antony.blogspot.in/2007/07/generalization-vs-specialization.html[^]
 
Just refer the above link and you will get your answer.
  Permalink  
v2
Comments
André Kraak at 18-Feb-12 10:12am
   
Edited solution:
Replaced txt speak
Activated link
"Treat my content as plain text..." option disabled.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 245
1 OriginalGriff 210
2 Manfred R. Bihy 190
3 CHill60 180
4 _Amy 155
0 OriginalGriff 7,445
1 Sergey Alexandrovich Kryukov 6,157
2 Maciej Los 3,774
3 Peter Leow 3,448
4 CHill60 2,702


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 18 Feb 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100