, . Java . , , , , . , Friend OO. ++ , OO, , OO.
I would think about changing your design to bring functionality closer to where the data lives, then you really will not have this problem. However, this is not always possible, especially if you are working with an outdated system. In this case, you should consider adapter classes, getters and setters, or parameters. Only my two cents.
source
share