|
Use abstract classes when you want to "force" to derived classes to implement some code.
Use interfaces when you want to define a behavior that can define any class that implement it on different hierarchies. When a class implements an interface is saying "I'm able to do that especific thing". When you subclass a class you are saying "I'm like my parent and more".
Ferran
Ferran
|