reimplementing an interface in a derived class

Alex sascha.orlov at gmail.com
Fri Jan 4 09:55:51 UTC 2019


On Friday, 4 January 2019 at 09:30:32 UTC, bauss wrote:
> Your C++ example is not the same as in D because in C++ 
> functions aren't virtual by default, they are in D.
>
> Mark your functions as virtual in your C++ example and see what 
> happens.
>
> All functions in D are virtual by default!

Yep. Got it! Thanks :)


More information about the Digitalmars-d-learn mailing list