C# - Keyword usage virtual+override vs. new

后端 未结 10 2083
被撕碎了的回忆
被撕碎了的回忆 2020-11-22 06:06

What are differences between declaring a method in a base type \"virtual\" and then overriding it in a child type using the \"override\" keyword as

10条回答
  •  礼貌的吻别
    2020-11-22 06:47

    The difference between the override keyword and new keyword is that the former does method overriding and the later does method hiding.

    Check out the folllowing links for more information...

    MSDN and Other

提交回复
热议问题