阅读背景:

为什么在C ++中将私有成员定义在公共成员之下?

来源:互联网 

In C++ sometimes in class definition public members are declared at first and privates later. But the variables or data members are normally private and used by the public methods. So, in this case variables are used but not even declared yet. Thus the code become difficult to understand. But I found renowned programmers, sites or books to declare the private members later. Does anybody knows what is the reason?In C++ sometimes in class definition public mem




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: