27 Kasım 2017 Pazartesi

private protected modifier

Giriş
Açıklaması şöyle
private protected really means protected AND internal. That is - member is accessible only to child classes which are in the same assembly, but not to child classes which are outside assembly (so restriction implied by "protected" is narrowed - becomes even more restrictive). That is useful if you build hierarchy of classes in your assembly and do not want any child classes from other assemblies to access certain parts of that hierarchy.

Hiç yorum yok:

Yorum Gönder