posted 10 years ago
In the superclass I have
Instance variables set to private CHECK
Setter methods as needed CHECK
Setter methods marked as public CHECK
But when I try to use the setter in the subclass
I get an error saying that I have an invalid method declaration
Here is the supertype code which I have abbreviated
And here is the subtype on which I am trying to set the inherited instance variables to something useful
I know that if I just set the variables to public I can access them directly but apparently that is bad encapsulation