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

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

Read Online OOP Job Interview Questions And Answers