Where did the concept of Interfaces come from?

后端 未结 18 2261
有刺的猬
有刺的猬 2021-01-11 18:45

In c#, we have interfaces. Where did these come from? They didn\'t exist in c++.

18条回答
  •  一个人的身影
    2021-01-11 19:35

    I trink interfaces came from the fact that some programmers got tired of writing the implementation of a method over and over again. How many times can you write:

    static string Method(int i)
    

    without thinking there has to be an easier way?

提交回复
热议问题