你可能感兴趣的试题
cout<<publicData<<endl; cout<<privateData<<endl; cout<<publicData<<endl; cout<<privateData<<endl;
类Koala是类Animal的派生类 类Koala中的Name函数是一个虚函数 类Animal中的Name函数是一个纯虚函数 语句"Animal a;"能够建立类Animal的一个对象a
obfunl(); obvarl; obfun2(); obfun3();
class Vechicle:public Bicycle class Bicycle: class Vechicle class Bicycle:public Vechicle class Bicycle: public class Vechicle
:a(n){} :AA(n){} {a(n);} {a=n;)
cout<<a.publicData<<endl; cout<<a.privateData<<endl; cout<<b.publieData<<endl; eout<<b.privateData<<endl;
cout<<a.publicData<<endl; cout<<a.privateData<<endl; cout<<b.publieData<<endl; eout<<b.privateData<<endl;