D vs C++ classes?
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Tue Jun 22 13:39:39 UTC 2021
On Tuesday, 22 June 2021 at 11:13:52 UTC, jmh530 wrote:
> However, I was thinking what happens if you do something like
> A ac = new C();
>
> How would the compiler handle that?
Runtime error, but this is just a bad idea.
If B and C inherits from A and specializes a() then a D that
inherits from both B and C should be forced to implement a().
Not really a big issue, I think.
More information about the Digitalmars-d
mailing list