On Fri, Nov 27, 2015 at 10:16 PM, Anthony Walter <sys...@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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal