abstract base class and class members

Timon Gehr timon.gehr at gmx.ch
Sun Mar 4 13:29:53 PST 2012


On 03/04/2012 07:22 PM, H. S. Teoh wrote:
>
> Makes one wonder, though... from an OO perspective, does it make sense
> to have overridable non-function members? What semantics would (should)
> that have?
>

Yes, it does make sense. const/immutable/(final) fields can be 
covariant. OTOH, it is not evident that it would be extremely useful.



More information about the Digitalmars-d-learn mailing list