Abstract classes vs interfaces, casting from void*

Alex sascha.orlov at gmail.com
Sun Aug 11 15:16:03 UTC 2019


On Sunday, 11 August 2019 at 13:09:43 UTC, John Colvin wrote:
>> Ok. What would go wrong (in D) if I just replaced every 
>> interface with an abstract class?
>
> I think there's some confusion here, because B.foo is not 
> abstract. abstract on a class is not inherited by its methods. 
> https://dlang.org/spec/attribute.html#abstract

Now, I'm confused, as you asked about abstract classes. So, yes, 
you can define the abstractness of classes differently. And what 
is your point?


More information about the Digitalmars-d-learn mailing list