• Post Reply Bookmark Topic Watch Topic
  • New Topic

protect multi level derivation

 
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: 52516
119
  • 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!