首页 > 试题广场 >

已知: print( ) 函数是一个类的常成员函数,它无返回

[单选题]

已知: print( ) 函数是一个类的常成员函数,它无返回值,下列表示中,( )是正确的。

  • void print( ) const;
  • const void print( );
  • void const print( );
  • void print(const);
const修饰类的成员函数,一般写在函数的最后来修饰。
发表于 2017-09-18 10:30:06 回复(0)