Thursday, March 15, 2007

Inheritence Using Abstract Classes and Normal classes

While playing with minimum of 1 or 2 classes its easy to implement the concept of inheritence using concrete(normal) classes.

But in case of inheriting properties within a hierarchy or family , its better to use Abstract classes , so that you can define some functionalities that is same throughout the hierarchy and you can override several functionalities so that its more specific to that subclass.

So only the circumstance differ and not the concept of inheritence.

No comments: