问题 单项选择题

对类的构造函数和析构函数描述正确的是( )。

A.Redim a As Integer

B.Static a As Integer

C.Public a As Integer

D.Dim a As Integer

答案

参考答案:B

解析:C++中用友元函数重载运算符至少有一个参数,重载一目运算符要有一个参数,重载二目运算符要有两个参数。

选择题
单项选择题