问题 填空题

在下面横线上填上适当的语句,完成程序。
#include<iostream>
using namespace std;
class Base int x;
public:
Base(int i) x=i;
~Base()
;
class Derived: public Basepublic:
【14】 //完成类Derive 构造函数的定义
;
int main() Derived Obj();
return 0;

答案

参考答案:Derived(int i):Base (i) {

选择题
单项选择题