Study overrides, overloads, shadowing, hiding and obscuring in the Java
Language Specification (JLS).
Another hyper-constructive one-liner from Lew focusing
on the bigger picture.
Amazing open-mindedness.
Actually instead of becoming a JLS nazi, I'd recommend
the OP to study the meaning of inheritance in the bigger
OO picture.
Learning to become a JLS nazi apparently may hinder
people from seeing the bigger picture and from staying
polite (you've been particularly rude to a regular poster
in here recently, saying that you wouldn't be reading his
post should you have the opportunity to opt-him-out or
something like that).
Anyway, to the OP...
I'm currently working on a wonderfully "OO designed"
application and the translation to Java is a breeze.
Zero instance of the "abstract" keyword.
Zero instance of the "protected" keyword.
"extends" is only ever applied to interface.
And there's *much* *much* more heresy to JLS nazis than
that. A complex subpart has been implemented using *only*
immutable objects. Not a single setter. "OO over
immutable objects" (heresy uh !?).
The DB is an OO DB (heresy, I tell you!).
When will I fail? When will people doing OOP in
languages not allowing concrete implementation fail?
But, more importantly, how relevant become such issues
when one is doing OOA/OOD -> OOP translation without ever
relying on implementation inheritance? (I'm not saying
the issues don't exist when extending [Java] interfaces,
but having all these fields final by default sure helps mitigate
many concerns
How I miss my lurking days in c.l.j.p. when JLS nazis
where actually clueful about the bigger picture (I think
particularly about "T. M.", an engineer of the
Java IBM VMs). He was not only pointing to the
JLS like a JLS nazi but he was also nearly always
explaining why it was probably a waste of time to
focus on such things.
And all this knowledge is accessible thanks to, say,
groups.google.com.
Much more useful than your "read the JLS" one-liners
that could be tagged as "the author requested this post
not to be archived".
T.M. was one heck of a JLS nazi (and all around JVM
expert) and he definitely could see the bigger picture.
You're posts just lack open mindedness.
I'd recommend reading section x.y.z of the JLS if
it could help you "free your procedural SQL mind",
but sadly it takes more than searching and memorizing
abilities.