Meaningless Drivel is fun!
The moose likes Beginning Java and the fly likes protect multi level derivation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "protect multi level derivation" Watch "protect multi level derivation" New topic

protect multi level derivation

Suddhasattwa Mukherjee
Ranch Hand

Joined: May 28, 2008
Posts: 52
how to protect multilevel inheritance using final key word.
[ January 02, 2009: Message edited by: Suddhasattwa Mukherjee ]
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45421
You can label a class final in which case it cannot be a superclass to anything. You can label an instance method final in which case it cannot be overridden.

"Multilevel derivation" is not a Java phrase which I am familiar with; what does it mean?
Don't get me started about those stupid light bulbs.
subject: protect multi level derivation
It's not a secret anymore!