阅读背景:

如何模拟c++中的接口?

来源:互联网 

Since C++ lacks the interface feature of Java and C#, what is the preferred way to simulate interfaces in C++ classes? My guess would be multiple inheritance of abstract classes. What are the implications in terms of memory overhead/performance? Are there any naming conventions for such simulated interfaces, such as feature of Java a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: