• Your method can call other methods in its class directly
• Your method can call methods on its own fields directly (but not on
the fields' fields)
• When your method takes parameters, your method can call methods
on those parameters directly
• When your method creates local objects, that method can call methods
on the local objects
• Your method can call methods on its own fields directly (but not on
the fields' fields)
• When your method takes parameters, your method can call methods
on those parameters directly
• When your method creates local objects, that method can call methods
on the local objects
本文介绍了在面向对象编程中,一个方法如何直接调用其所在类的其他方法、自身字段的方法以及参数对象上的方法。此外,还解释了当创建局部对象时,如何通过该局部对象调用相应的方法。
9969

被折叠的 条评论
为什么被折叠?



