Interview answers verified by specialists.

Find interview questions and answers on this website:

See right interview answers on 30 common job interview questions

How can you allow class to be inherited and prevent the method from being over-ridden?

 Declare the class as public and make the methods sealed. 

 The method declaration with a sealed modifier is called as a sealed method. The same method must also include the override modifier. With the use of sealed modifier, a derived class is prevented from futher overriding the method. 

Do you know that?

Top five countries by spending in 2014 on Upwork-Elance: United States, Australia, United Kingdom, Canada, and United Arab Emirates Next