class的继承,从基类开始
发布日期:2021-08-29 23:31:51 浏览次数:27 分类:技术文章

本文共 421 字,大约阅读时间需要 1 分钟。

#include 
#include
using namespace std;class A{public: A() { puts("this is A!"); }};class B : A{public: B() { puts("this is B!"); }};class C : B{public: C() { puts("this is C!"); }};int main(){ //A a; C c; return 0;}

  

 

this is A!this is B!this is C!Process returned 0 (0x0)   execution time : 0.007 sPress any key to continue.

  

转载地址:https://blog.csdn.net/weixin_34015336/article/details/85674329 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:人人都是 DBA(I)SQL Server 体系结构
下一篇:redis 学习笔记(4)-HA高可用方案Sentinel配置

发表评论

最新留言

不错!
[***.144.177.141]2024年04月06日 23时54分02秒