posted 4 years ago
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.