Java: Accessing private fields directly from another instance of the same class
I\'m writing a equals(Object obj) function for a class. I see that it is possible 开发者_运维技巧to access the private fields of obj from the caller. So instead of using a getter:
问答
阅读(2)