Why has base class protection been deprecated?
Don Clugston
dac at nospam.com
Tue Apr 24 06:37:05 PDT 2012
On 24/04/12 15:29, David Bryant wrote:
>>
>> Because it doesn't make sense. All classes are derived from Object. That
>> _has_ to be public, otherwise things like == wouldn't work.
>>
>
> Does the same apply for interfaces? I'm specifically implementing an
> interface with non-public visibility. This shouldn't affect the
> visibility of the implicit Object base-class.
Right. Only classes are affected.
More information about the Digitalmars-d-learn
mailing list