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+类型名
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+类型名