Java中this是啥意思


①当this在普通方法中的时候表示当前正在调用该方法的对象的引用。

https://blog.csdn.net/qq_40065776/article/details/96316543

this就是调用该方法的对象的引用

谁调用这个方法,那么this它就是那个对象

p 和 class Person里的this一致

this就是p那个对象

this可以去掉,因为隐藏的this

原文地址:https://www.cnblogs.com/NuoChong/p/12308592.html