Private visible?

David Medlock noone at nowhere.com
Sat Jul 15 17:27:06 PDT 2006


Walter Bright wrote:
> Lucas Goss wrote:
> 
>> So the compiler does error with the first two attempts, but the third 
>> compiles and runs fine.
> 
> 
> Yes, it is C++ and is perfectly legal C++. A more interesting question 
> is should it be legal? I posed the question in comp.lang.c++.moderated, 
> and got a couple of interesting answers.

in Java you cannot override a method with a more protected access.  I 
consider it a safeguard, so that I do not get caught in a lattice of 
protection attributes and inheritance.

-DavidM



More information about the Digitalmars-d mailing list