What can you do to make class available for inheritance but you need to prevent it's method to come in inheritance chain?

 Posted by Virendradugar on 12/15/2009 | Category: OOPS Interview questions | Views: 5043

Well, Declare a class with public access specifier and mark all it's method to private . As anything which is declared with sealed keyword cannot be inherited.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response