打赏

相关文章

c++: 继承(下)

继承与静态成员变量基类定义了static静态成员,则整个继承体系⾥⾯只有⼀个这样的成员。⽆论派⽣出多少个派⽣类,都只有⼀个static成员实例。class Person { public:string _name;static int _count; }; int Person::_count 0; class Student : public P…

手机版浏览

扫一扫体验

微信公众账号

微信扫一扫加关注

返回
顶部