题目内容
阅读下列程序,写出程序的运行结果____。#include using namespace std;class Animal{public:void speak() { cout << "animal language!" << endl; }};class Cat :public Animal{public:void speak() { cout << "cat language: miaomiao!" << endl; }};int main(){Animal *p=new Cat;p->speak();
查看答案
搜索结果不匹配?点我反馈