Where did the concept of Interfaces come from?

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

    While not called 'interfaces', C data structure pointers with function pointers as elements of the structure implemented the concept of interfaces long before c++ did with virtual base classes IMO.

提交回复
热议问题