Interesting.
Marty
Marty
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sure, if you have a JUnit test that needs to inject data into the class, then create a package-scope getter/setter (or method!)cpjust said:Although, I do think that you need to be able to change data in an object from time to time, so you need some way to get the data into the object.
Marty1. All data is private. Period. (This rule applies to all implementation details, not just the data.)
Why would you wrap an int or double in an object just to pass it to another object that will unwrap it?h0h0h0 said:should be passing objects back and forth NOT primitives.