Difference Between Generalization and Specialization

Shailendra Chauhan  Print   1 min read  
21 Oct 2013
26 Apr 2019

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 subclasses 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.

Read More Articles Related to oops
What do you think?

  In this article, I try to explain the Difference Between Generalization and Specialization. I hope you will enjoy the tips while programming with OOPs. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.

Share Article

Take our free skill tests to evaluate your skill!

In less than 5 minutes, with our skill test, you can identify your knowledge gaps and strengths.

Training Schedules
+91 9999123502
Accept cookies & close this