由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - C++ Question
相关主题
请教template class怎么处理Inheritance问题(面试题)One C++ question
请教一个C++问题说说我被面试到的c++题目吧
C++ object size一问问两个C++的问题
C++ online Test 一题包子呼唤大牛--问关于C++Destructor的问题 (转载)
C++ virtrual destructor再问个C++题目
一个简单的java题C++ Q60 calling virtual function in constructor (JPMorgan)
今早Bloomberg电话面试经过,奉献给大家。。。C++ online Test 一题
Bloomberg网上测试题好心人帮忙推荐一本C++入门书
相关话题的讨论汇总
话题: c++话题: class话题: question话题: object话题: answer
进入JobHunting版参与讨论
1 (共1页)
s**3
发帖数: 191
1
For the following question, I don't see any correct answer, but it must has
a coorect answer. Could anyone answer it?
Which one of the following is true regarding a C++ class?
a) A pointer to an object can only be used to access its class's private
member functions if the pointer is in a member or friend function.
b) Whether specified or not, all C++ classes implicitly inherit from class
Object.
c) A C++ class must have at least one explicitly declared constructor.
d) Members of class A can access protected and private methods of class B if
class A is derived from B or if class B is a friend A.
e) A c++ class cannot be derived from a C structure defined with keyword
struct.
s*****e
发帖数: 33
2
感觉都是错的
a*******e
发帖数: 455
3
A is correct
s**********r
发帖数: 117
4
A没看懂啥意思。
B C++里没有Object这个父类,除非自己写
C 不需要,编译器在需要的时候会自动生成默认构造函数,注意是需要的时候,不是一
直都回自动生成
D 错的
E 可以
1 (共1页)
进入JobHunting版参与讨论
相关主题
好心人帮忙推荐一本C++入门书C++ virtrual destructor
Can we define pure virtual function?一个简单的java题
再帖一遍Amazon Onsite的题今早Bloomberg电话面试经过,奉献给大家。。。
Amazon的一些电面问题Bloomberg网上测试题
请教template class怎么处理Inheritance问题(面试题)One C++ question
请教一个C++问题说说我被面试到的c++题目吧
C++ object size一问问两个C++的问题
C++ online Test 一题包子呼唤大牛--问关于C++Destructor的问题 (转载)
相关话题的讨论汇总
话题: c++话题: class话题: question话题: object话题: answer