How to return subtype in overridden method of subclass in C#?

前端 未结 7 1858
北海茫月
北海茫月 2020-12-09 14:59

I have a subclass with an over-ridden method that I know always returns a particular subtype of the return type declared in the base class. If I write the code this way, it

7条回答
提交回复
热议问题