C++中使用interface
- 使用struct;
- 不使用成员变量,只使用成员函数;
- 所有成员函数都是纯虚的;
- 不使用构造函数和析构函数;
参考
C++的interface_c++ interface_Stephan_zry的博客-CSDN博客
c++ 如何编写接口类(interface)_c++接口怎么写_永不做码农的博客-CSDN博客
标签:C++,博客,CSDN,c++,使用,interface From: https://www.cnblogs.com/octoberkey/p/17186984.html