[removed] Do I need to put this.var for every variable in an object?

前端 未结 6 1444
太阳男子
太阳男子 2020-11-21 05:06

In C++, the language I\'m most comfortable with, usually one declares an object like this:

class foo
{
public:
    int bar;
    int getBar() { return bar; }
         


        
6条回答
提交回复
热议问题