[fpc-pascal] Implementing Factory Method with Pascal

Marco van de Voort marcov at stack.nl
Sat Nov 28 18:31:01 CET 2015

In our previous episode, Marcos Douglas said:
> Inheritance breaks encapsulation. This was written even in GoF Patterns.
> There are many post, on the web, explaining why inheritance is evil.
> I searched on Google right now:
> http://blog.berniesumption.com/software/inheritance-is-evil-and-must-be-destroyed/
> http://www.javaworld.com/article/2073649/core-java/why-extends-is-evil.html

Such rants are in direct opposition of GoF. GoF never meant to push a set of
unbendable rules. They just wanted to standarize jargon, and describe
somethings they encountered (without any claim that everybody should use

Aside from the fact that interfaces is still inheritance.

More information about the fpc-pascal mailing list