override and package
Jacob Carlborg
doob at me.com
Thu Sep 12 04:40:16 PDT 2013
On 2013-09-12 13:39, Jacob Carlborg wrote:
> If you call through an object of the same type, T4 in this case, the
> method in the base class is hidden. If you call through a base class
> reference, T1 in this case, the "_apply" method in the subclass is hidden.
I'm guessing it's the same as overriding non-virtual methods in C++, if
you're familiar with that.
--
/Jacob Carlborg
More information about the Digitalmars-d-learn
mailing list