[fpc-pascal] Implementing Factory Method with Pascal

Marcos Douglas md at delfire.net
Sat Nov 28 01:28:18 CET 2015


On Fri, Nov 27, 2015 at 10:16 PM, Anthony Walter <sysrpl at gmail.com> wrote:
> if Animal is IBarkable then (Animal as IBarkable).Bark;

Your approach is much better, but don't use casting is even better
when we working with a true object oriented, because casting is a
"procedural command" for the compiler.


Marcos Douglas



More information about the fpc-pascal mailing list