CSHARP_INTERVIEW_LIB Telegram 791
Можно ли разрешить наследование класса, но запретить переопределение метода?

Можно для второго класса в иерархии наследования, если переопределяем виртуальный метод как sealed override, тогда дальнейшее переопределение по цепочке наследования запрещено.

Библиотека собеса по С#
👍2



tgoop.com/csharp_interview_lib/791
Create:
Last Update:

Можно ли разрешить наследование класса, но запретить переопределение метода?

Можно для второго класса в иерархии наследования, если переопределяем виртуальный метод как sealed override, тогда дальнейшее переопределение по цепочке наследования запрещено.

Библиотека собеса по С#

BY Библиотека собеса по C# | вопросы с собеседований


Share with your friend now:
tgoop.com/csharp_interview_lib/791

View MORE
Open in Telegram


Telegram News

Date: |

Private channels are only accessible to subscribers and don’t appear in public searches. To join a private channel, you need to receive a link from the owner (administrator). A private channel is an excellent solution for companies and teams. You can also use this type of channel to write down personal notes, reflections, etc. By the way, you can make your private channel public at any moment. In handing down the sentence yesterday, deputy judge Peter Hui Shiu-keung of the district court said that even if Ng did not post the messages, he cannot shirk responsibility as the owner and administrator of such a big group for allowing these messages that incite illegal behaviors to exist. A vandalised bank during the 2019 protest. File photo: May James/HKFP. 5Telegram Channel avatar size/dimensions During a meeting with the president of the Supreme Electoral Court (TSE) on June 6, Telegram's Vice President Ilya Perekopsky announced the initiatives. According to the executive, Brazil is the first country in the world where Telegram is introducing the features, which could be expanded to other countries facing threats to democracy through the dissemination of false content.
from us


Telegram Библиотека собеса по C# | вопросы с собеседований
FROM American