Abstract classes vs interfaces, casting from void*
John Colvin
john.loughran.colvin at gmail.com
Sat Aug 10 14:27:45 UTC 2019
On Saturday, 10 August 2019 at 10:02:02 UTC, Antonio Corbi wrote:
> On Saturday, 10 August 2019 at 08:20:46 UTC, John Colvin wrote:
>> On Friday, 9 August 2019 at 13:39:53 UTC, Simen Kjærås wrote:
>>> <snip>
>>
>> Thanks for the extra detail.
>>
>> Is there a solid reason to ever use an interface over an
>> abstract class? (Other than multiple inheritance).
>>
>> I'm such a noob at anything related to OO.
>
> Hi John.
>
> One reason could be data. Abstract classes can hold data,
> interfaces can't.
>
> Antonio
That's a reason to use an abstract class, not a reason to use an
interface.
More information about the Digitalmars-d-learn
mailing list