Is the C# “explicit implementation” of the interface present in Java?

前端 未结 4 1705
忘掉有多难
忘掉有多难 2020-12-17 14:23

In C#, if you have two base interfaces with the same method (say, F()) you can use explicit implementation to perform different impl. for F(). This alloes you to differently

4条回答
  •  无人及你
    2020-12-17 14:48

    You can only do this if the methods are overloaded. If you have two method which are expected to do different things, they should have different names IMHO.

提交回复
热议问题