Wednesday, 29 August 2012

What is Specialization in Java?

Specialization means Subclass is specialized version of Super Class 
like Dog is specialized version of Animal i.e  extending a class, 
which is really the opposite of generalization.

Like

class Animal
{

}

class Dog extends Animal //Dog is specialized version of animal
{

}

No comments:

Post a Comment