多重继承

单一继承:一个父类,可以有多个子类 多重继承:多个父类,只有一个子类 程序示例    //多重继承 1 #include <iostream> 2 using namespace std; 3 class father//父类一 4 { 5 public: 6 void set_father(int a){ tall = a; } 7 void print_fathe
相关文章
相关标签/搜索