1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

what is difference between generalization and specialization?

Discussion in 'C#' started by alendonald, Jul 12, 2013.

  1. #1
    Hello,
    Tell me about the specialization and generalization. And what is difference between both.
    SEMrush
     
    alendonald, Jul 12, 2013 IP
    SEMrush
  2. yasashii

    yasashii Active Member

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    60
    #2
    when something is certain or specific then it comes under the term of "specialization".
    when overall view is given or talking about a subject or topic by taking its broader view then it will be "generalization".
     
    yasashii, Jul 12, 2013 IP
  3. Chris Santos

    Chris Santos Member

    Messages:
    25
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    38
    Digital Goods:
    1
    #3
    This article explains both generalization and specialization clearly.

    http://sourcemaking.com/uml/modeling-it-systems/structural-view/generalization-specialization-and-inheritance

    Generalization involves extracting shared characteristics from two or more individual classes and combining them all into one "generalized" superclass.

    Specialization is the opposite of this process. You create more than one subclass from the singular superclass. You take the (attribute)s that are unique and create a specific subclass for each of them. The trick is to realize what attributes go together and which attributes stand alone.

    The 2 diagrams in the article help tremendously. Some things are better explained in pictures and not in words.
     
    Chris Santos, Jul 12, 2013 IP
  4. gym.prathap

    gym.prathap Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #4
    Generalization identifies the commonalities among a set of entities. The commonality may be of data's (attribute), methods(behavior) or both. The generalization/specialization represents is-a relationship. The main theme of generalization/specialization is that class (the specialization )is a subset of another class(the generalization). The direction of is-a relation goes from the specialization to the generalization. This means that specialization class is a generalization class.

    .Net Training in chennai
     
    gym.prathap, Jul 28, 2013 IP
  5. ethansamuel17

    ethansamuel17 Greenhorn

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #5
    All the above answer are very good in detail about specialization and generalization but I would like to say specially thanks to "Chris" for explaining in a good manner.
     
    ethansamuel17, Oct 6, 2014 IP
  6. anushka123

    anushka123 Greenhorn

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #6
    The process of extracting common characteristics from two or more classes and combining them into a generalized superclass, is called Generalization. The common characteristics can be attributes or methods. Generalization is represented by a triangle followed by a line.

    Specialization is the reverse process of Generalization means creating new sub classes from an existing class.

    Let’s take an example of Bank Account;
    A Bank Account is of two types – Current Account and Saving Account. Current Account and Saving Account inherits the common/ generalized properties like Account Number, Account Balance etc. from a Bank Account and also have their own specialized properties like interest rate etc.
     
    anushka123, Oct 26, 2014 IP