lundi 12 septembre 2016

GoF builder and Liskov Substitution Principle

In GoF there is a part about builder implementation issues. One of them says:

Empty methods as default in Builder. In C++, the build methods are intentionally not declared pure virtual member functions. They're defined as empty methods instead, letting clients override only the operations they're interested in.

Doesn't empty method violate LSP?

Aucun commentaire:

Enregistrer un commentaire