This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am almost embarassed to ask this, but as a newbie, I must. I have two objects, object1, and object2. It is very obvious that they have a relationship. Moreover, object2 IS an object1, but with one member being differant. I have created object2 so that it inherits from object1. What must I do so that I can change the member of object1 to fit object 2, and have the access to the getters and setters of all members? Does everything have to be changed to protected rather than private? It is also so, that I do not want the whole package to have access to these members and methods, just object1 and those that inherit from it.