2018-04-30
this keyword
what is this:
Represents the current object itself, or an instance of the current class, through which all methods and properties of this object can be called.
this mainly exists in two places:
1) Constructor: At this time, this means calling the currently created object
2) In the member method: the object a calls the method where this is located, at this time this represents the object a
When an object is created, the JVM will automatically assign a reference to this object this
Memory Analysis:
refer to:
http://www.weixueyuan.net/view/5988.html