On 29 May 2010, at 18:11, Michael Van Canneyt wrote: > It depends on what you want to achieve. If you make it a static method, then > the compiler will emit a warning "function Text hides method of parent > class" (or something like it) > > If you make it virtual, then you must explicitly add "override" to override > the implementation of the method.
Virtual methods can also hide inherited methods (if you don't add override). Jonas_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal