overriding alias symbols

Superstar64 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Oct 12 16:53:01 PDT 2016


On Wednesday, 12 October 2016 at 22:14:32 UTC, Superstar64 wrote:
> ...
Nevermind I just realized I can do this:
---
abstract class MyAbstractClass
{
     void myAbstractMethod();
}

void defaultImplentation(T...)
{
}

class MyClass : MyAbstractClass
{
     override void myAbstractMethod()
     {
         return defaultImplentation!();
     }
}


More information about the Digitalmars-d-learn mailing list