单项选择题
有如下程序:
#include <iostream>
using namespace std;
class Base
public:
Base()cout<<"BB";f();
Void f()cout<<"Bf";
;
class Derived: public Base
public:
Derived() cout<<"DD";
void f() cout<<"Df";
;
int main() Derived d;return 0;
执行上面的程序将输出( )。
A.BBBfDD
B.BBDfDDDf
C.DD
D.DDBBBf