samedi 20 juillet 2019

Deriving from a concrete class?

In book 'Head First Design Patterns', one of the way mentioned to not violate 'Dependency Inversion' principle is as:

No class derive from a concrete class.

Is it possible to follow this rule thoroughly? In many commonly used frameworks and libraries its common to find classes not following this rule.

Aucun commentaire:

Enregistrer un commentaire