Показать сообщение отдельно
Старый 26.07.2020, 07:00   #4  
trud is offline
trud
Участник
Лучший по профессии 2017
 
1,038 / 1629 (57) ++++++++
Регистрация: 07.06.2003
Записей в блоге: 1
Цитата:
Сообщение от mazzy Посмотреть сообщение

авторы таких классов как правило еще и "закрывают" метод new модификатором protected.
Я так понимаю чтобы использовать construct, который можно расширить
https://docs.microsoft.com/en-us/dyn...lid-principles
Цитата:
Liskov substitution – Derived classes must be able to be substituted for their base classes. For example, this substitution can be done by providing factories, by using SysExtension, and by using simple construct methods.