how to use a variable from a superclass to a subclass?
I have a superclass and I want to use a variable that is inside this superclass into my subclass. How can this be possible?
Just make the field
protected, meaning that it should be visible to all derived classes.