多重繼承

單一繼承:一個父類,可以有多個子類 多重繼承:多個父類,只有一個子類 程序示例    //多重繼承 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
相關文章
相關標籤/搜索