![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c ++
望向缸外的大眼睛
这个作者很懒,什么都没留下…
展开
-
c++多态
#include <iostream>using namespace std;//多态democlass Person{private: const int a; const int b;public: friend class Students; friend class Ordinary; Person(int i, int j):a(i), b(j){} virtual void display()=0; virtual.原创 2020-06-27 13:37:34 · 227 阅读 · 1 评论 -
C++继承
#include <iostream>using namespace std;//继承democlass Person{private: const int a; const int b;public: friend class Students; Person(int i, int j):a(i), b(j){} virtual void display()=0; int getA(){ return a; .原创 2020-06-27 13:33:22 · 172 阅读 · 0 评论