Is it a bug that a parent class that access its own private members from derived classes gets deprecation warning?

Timon Gehr timon.gehr at gmx.ch
Sun Apr 8 14:36:11 UTC 2018


On 08.04.2018 15:00, bauss wrote:
> 
> It's perfectly normal in other languages that supports classes to access 
> private members of parent's as long as you're within the parent's 
> encapsulation.

That is not true. Use 'protected'.


More information about the Digitalmars-d mailing list