题目内容
有如下程序: #include <iostream> using namespace std; class PARENT { public: PARENT() { cout << "PARENT"; } }; class SON: public PARENT { public: SON() { cout << "SON"; } }; int main() { SON son; PARENT *p; p = &son; return 0; } 执行上面程序的输出是 【12】 。
查看答案
搜索结果不匹配?点我反馈