[单选题]

已知函数print()没有返回值,如果在类中将之声明为常成员函数,正确的是(  )。

A.voidprint()const

B.constvoidprint()

C.voidconsrprint()

D.voidprint(const)

参考答案与解析:

相关试题