高等继续教育 / 面向对象程序设计
正确率:100%
题型描述: 多选题
下面不是运算符new重载的正确格式的是( )
A.void *类名::operator new(size_t size, int x, int y);
B.void *类名::operator new(size_t size);
C.int *类名::operator new(size_t size, int x, int y);
D.void *类名::operator new(int x, int y,size_t size);
下面不是运算符new重载的正确格式的是( )
A.void *类名::operator new(size_t size, int x, int y);
B.void *类名::operator new(size_t size);
C.int *类名::operator new(size_t size, int x, int y);
D.void *类名::operator new(int x, int y,size_t size);
参考答案: