This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

protect multi level derivation  RSS feed

 
Suddhasattwa Mukherjee
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to protect multilevel inheritance using final key word.
[ January 02, 2009: Message edited by: Suddhasattwa Mukherjee ]
 
Campbell Ritchie
Marshal
Posts: 55694
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!