Where did the concept of Interfaces come from?

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

    C++ allows for multiple inheritance. When Java was developed, single inheritance was decided upon however classes were allowed to implement multiple interfaces. C# carried forward this concept.

提交回复
热议问题