首页 > 编程语言 >C++中使用interface

C++中使用interface

时间:2023-03-07 09:46:53浏览次数:45  
标签:C++ 博客 CSDN c++ 使用 interface

C++中使用interface

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

参考

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

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

标签:C++,博客,CSDN,c++,使用,interface
From: https://www.cnblogs.com/octoberkey/p/17186984.html

相关文章