Hello, again. Still working through the Javanotes text by Eck. I am in Chapter 9 now.
A few chapters ago, I came across this sentence, and made a flash card out of it.
The major use of super is to override a method with a new method that extends the behavior of the inherited method, instead of replacing that behavior entirely. (bold his)
Despite believing I understand "super", I have a terrible time with this flash card, and I don't think I'm understanding what he's trying to get across.
When I see "The major use of super is..." I always say "
to gain access to methods in the superclass." (I know it can also be used to access constructors and hidden fields, but I'm going for the
major use.)
Is that what he's saying, too, and I am just having a hard time parsing his grammar? Or do I have a fundamental misunderstanding of the major use of super? I have read what the
Java Language Specification has to say about super, as well as the tutorials on the Oracle website, but didn't find those to be any help.