Question 31: A C++ developer wants to handle a static_cast() operation for the class String shown below. Which of the following
来源:互联网 发布:黑暗之魂剧情知乎 编辑:程序博客网 时间:2024/05/21 10:48
class String {
public:
//...
//declaration goes here
};
A. char* operator();
B. char* operator char*();
C. String operator char*();
D. operator char*();
E. char* operator String();
D
2种会导致隐式类型转换的方法 1 单参数构造函数 2operator+类型名
- Question 31: A C++ developer wants to handle a static_cast() operation for the class String shown below. Which of the following
- Question 42: A C++ developer wants to explicitly specialize the template function below for the char * type:
- Question 16: Which of the following methods can a developer use to override the default terminate() function in C++?
- Question 29: The C++ code below generates a compiler error. Which of the following solutions can be used to correctly access the
- Question 26: Which of the following options describe the expected overhead for a class that has 5 virtual functions?
- Question 24: Which of the following template declarations provide the correct syntax to write a template class
- Question 48: In C++, which of the following statements accurately describe a base class destructor calling a virtual function ov
- Question 34: Under which of the following conditions will a C++ developer use polymorphism?
- Question 4: Which of the following statements correctly describe the code below in C++?
- Question 37: In C++, which of the following statements regarding the code below are valid?
- Question 9: Which of the following statements correctly describe the results of executing the code below in C++?
- Question 15: Which of the following statements describe the results of executing the code snippet below in C++?
- Question 39: Which of the following are possible outputs of the C++ code below?
- Question 17: Which of the following identify const-correctness failures in the C++ program below?
- Question 23: Which of the following C++ keywords are designed to speed up execution of a C++ function?
- (NOT CLEAR)Question 21: Which of the following statements provide a valid reason not to use RTTI for distributed (i.e. networked
- Question 25: For the code snippet below, which of the following statements provide the correct order of constructor calls when o
- In which of the following does a C++ developer use the placement new syntax to make new allocate an
- 类的static,const,static const , const static成员的初始化
- 增加虚拟机的磁盘空间
- Socket的Server-Client模型的程序
- 关于基类为什么要声明析构函数
- nepomuk提示无法启动Sesame2后端
- Question 31: A C++ developer wants to handle a static_cast() operation for the class String shown below. Which of the following
- 搜索Ebuild (一)——eix的极限
- win7安装oracle10g不兼容问题解决办法
- Delphi2010中DataSnap高级技术
- 要适应screen
- (NOT CLEAR)Question 32: In C++, there is a standard global object wcin of type wistream. What is the template type of the wistr
- 面试题
- 函数后面的const的作用
- 动态添加菜单项、子菜单、右键菜单