类 Contain 的定义如下: class Contain { private: int x; protected: int z; public: class Embed { private: int y; public: Embed ( ) { y=100; } int Embed_Fun(); }MyEmbed; int Contain_Fun(); }; 下列对上面定义的描述中,正确的是( )。
A.
定义类Embed对象的语句是:Contain::Embed Myobject;
B.
类Contain的成员函数Contain_Fun()中可以访问对象MyEmbed的私有成员y
C.
类Embed的成员函数Embed_Fun()中可以直接访问类Contain的所有成员
D.
类Embed的成员函数Embed_Fun()中只能直接访问类Contain的公有成员
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】Almosteveryone has his own strengths and weakness. It is others are weak that maybe you have a great advantage. [ ]
【简答题】p_________(law) a conditional release from imprisonment that entitles the person to serve the remainder of the sentence outside the prison as long as the terms of release are complied with n.