Hello all, I have just began to read the book "Thinking in Java" by Bruce Eckel, and I've got a question about inheritance.
It is said in book that
the derived class may have additional or modified methods comparing to the base class;
the derived class may have additional data comparing to the base class.
I am just wondering, is it possible that the derived class has "modified data" comparing to the base class? Because the asymmetry between the "method" and "data" at this point makes me uncomfortable.
Thanks for your attention!