单项选择题
如果表达式a==b中的"=="是作为普通函数重载的运算符,若采用运算符函数调用格式,则可表示为()。
A.a.operator==(b)
B.b.operator==(a)
C.operator==(a,b)
D.operator==(b,a)
点击查看答案&解析
相关考题
-
单项选择题
假定AB为一个类,则执行"ABx(a,5);"语句时将自动调用该类的()。
A.带参构造函数
B.无参构造函数
C.拷贝构造函数
D.赋值重载函数 -
单项选择题
在读字节文件Employee.dat时,使用该文件作为参数的类是()。
A.Buffered Reader
B.Data Input Stream
C.Data Output Stream
D.File Input Stream -
单项选择题
下面的异常()为数组下标越界异常。
A.Arithmetic Exception
B.Null Pointer Exception
C.Array Index Out Of Bounds Exception
D.File Not Found Exception
