Does C# allow method overriding by changing its return value?
Explanation
C# does not allow to change the return type of a method by simply overriding it. If we are talking about methods' overloading, then it is done by changing their parameters, but not the return type. There are other ways to change the return type of a method, though. For example through: - creating a generic base class - using extension methods and a marker interface

by changing its return value?

2016 Apr 5, 2:38:28 PM

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты