const成员函数
摘要:
effective C++ 03 - 多才多艺的const const成员函数 类的非const对象既可以访问const成员函数,又可以访问非const成员函数。 类的const对象则只能访问类的const成员函数,不能访问非const成员函数。 因此,当需要使用类的const对象时,一般就需要为其 阅读全文
posted @ 2017-03-12 22:50 Dean@cnbolg 阅读(180) 评论(0) 推荐(0)
浙公网安备 33010602011771号