On Saturday, 28 April 2018 at 11:52:50 UTC, Jonathan M Davis
wrote:
unless you're declaring the type as a class purely so that it's
forced to be a reference type.
You can do a struct as a reference type too - just make it a
pimpl handle.
On Saturday, April 28, 2018 11:04:56 Andrey via Digitalmars-d-learn wrote:
> Hello,
> I have some questions about virtual table in classes.
> Example 1:
>
> class Test
> {
> void someMethod() { ... }
> int anotherMethod { ... }
> }
>
> Will this class have a vtable?
>
> Example 2:
>
Hello,
I have some questions about virtual table in classes.
Example 1:
class Test
{
void someMethod() { ... }
int anotherMethod { ... }
}
Will this class have a vtable?
Example 2:
class Test2 : Test
{
void thirdMethod() { ... }
}
Will this class have a vtable?
In C++ these