protected + package attributes
Mike Parker via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jul 11 08:06:41 PDT 2016
On Monday, 11 July 2016 at 12:42:57 UTC, ag0aep6g wrote:
> Other than that, you could add a `package` method with a
> different name that just calls the `protected` one.
This is a pattern I have found useful, particularly when dealing
with protected abstract methods, e.g.
package void someActon() { doSomeAction(); }
protected abstract void doSomeAction;
More information about the Digitalmars-d-learn
mailing list