Where did the concept of Interfaces come from?

后端 未结 18 2105
有刺的猬
有刺的猬 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:18

    I was under the impression that the first formalized concept of interfaces came from Objective-C (called "protocols"). I can tell you for sure that Java at least got the idea from Objective-C, so it wasn't Java that had interfaces first.

    Email from Patrick Naughton

提交回复
热议问题