GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java

 Print  |  
Question:  how and when to prevent inheritance?



January 01, 2006 12:49:55 #5
 lakshmi J2EE Expert  Member Since: January 2006    Total Comments: 1 

RE: how and when to prevent inheritance?
 
Final is Keyword which is used to prevent a class to Extend..when to stop the inheritance is up to u..when u need u'r class not to be subclassed further more then  we can prevent inheritance
     

 

Back To Question