Wiele razy czytałem że pola private są dostępne jedynie wewnątrz klasy w której się znajdują. Wydawało mi się to dziwne bo po co w takim razie te pola byłyby dziedziczone.
Na stronie Microsoft znalazłem coś takiego:
A derived class has access to the public, protected, internal, and protected internal members of a base class. Even though a derived class inherits the private members of a base class, it cannot access those members. However, all those private members are still present in the derived class and can do the same work they would do in the base class itself. For example, suppose that a protected base class method accesses a private field. That field has to be present in the derived class for the inherited base class method to work correctly.
Jeśli dobrze rozumiem to klasa potomna może mieć dostęp nawet do prywatnych pól klasy bazowej jeżeli odziedziczy odpowiednie metody?