Why do private member variables behaved like protected in the same module when creating deriving class?

Adam D. Ruppe destructionator at gmail.com
Sat Oct 27 18:05:57 UTC 2018


On Saturday, 27 October 2018 at 15:24:19 UTC, unprotected-entity 
wrote:
> Only in D, does b have x in it.
>
> In C++, Java and C#, b does *not* have x in it.

Well, they have it, it is just an error to use it from there.


More information about the Digitalmars-d mailing list