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
{
}
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