I am confused on when to use an object to call a method. For instance, sometimes I have to do object.someMethod()
and other times the method works when it is just called someMethod()
. If anyone could clarify when I need to use an object and when I do not, that would be great!
评论
请
登录后发表观点
- 积分
0 - 话题
0 - 评论
3274 - 注册排名
2475