411.什么要使用继承? class person( class employee private private char name[101 char name[101 Int age; int age; char sex: char sex char public department 20: void printo float salary; public void print(; 比较二个类4.1.1为什么要使用继承 ? class person{ private: char name[10]; int age; char sex; public: void print(); }; 比较二个类 class employee{ private: char name[10]; int age; char sex; char department[20]; float salary; public: void print(); }; 3