Ok. You have to consider something called: scope.
There are 4 keywords which indicate: Access Level (read: Controlling Access to Members of a Class (The Java™ Tutorials > Learning the Java Language...
Type: Posts; User: aussiemcgr
Ok. You have to consider something called: scope.
There are 4 keywords which indicate: Access Level (read: Controlling Access to Members of a Class (The Java™ Tutorials > Learning the Java Language...
He is using a direct reference. The description variable is private, so a InventoryItem can directly reference a private variable of another InventoryItem. It's not my preferred way of doing it. I...