Array of subclasses

Maxim Fomin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Oct 22 07:03:16 PDT 2015


On Thursday, 22 October 2015 at 13:29:06 UTC, DarkRiDDeR wrote:
>
> I don't need the base class data. How to create a array of 
> subclasses objects with the derived data members?

The language is implemented in this way. You have already have 
the answer:

> writeln(Core.users.name)
> Out:
> USERS


More information about the Digitalmars-d-learn mailing list