override and package

Jacob Carlborg doob at me.com
Thu Sep 12 04:39:26 PDT 2013


On 2013-09-12 13:34, Namespace wrote:

> Obvious. But what happend? Is the original _apply hidden?

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.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list