我有一行代码如下:
int method(void) const;
但是我不确定参数中的(void)是什么,或者const是什么.这也应该是一个公共'get',我不确定如何在类中接近(void)和const.
c++ methods void
c++ ×1
methods ×1
void ×1