C++中使用interface

C++中使用interface

  1. 使用struct;
  2. 不使用成员变量,只使用成员函数;
  3. 所有成员函数都是纯虚的;
  4. 不使用构造函数和析构函数;

参考

C++的interface_c++ interface_Stephan_zry的博客-CSDN博客

c++ 如何编写接口类(interface)_c++接口怎么写_永不做码农的博客-CSDN博客

posted on 2023-03-07 09:32  OctoberKey  阅读(84)  评论(0)    收藏  举报

导航