How can you prevent classes to be inherited?

Answer Posted / dhara

we can prevent class to be inherite by making sealed class
by using keyword sealed.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how do you debug an asp.net web application?

487


What is the default modifier for class in c#?

519


When would you use generics in your code c#?

493


What is the difference between select and selectmany?

438


What is func c#?

504






What is executescalar in c#?

464


Define thread? Explain about multithreading?

570


What is string method in c#?

498


Is friend a constructor?

513


What is the difference between var and dynamic types in c# 4.0?

515


What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?

500


Why do we still see so much non-oo code written in c# today?

494


Differentiate between method overriding from method overloading with its functionality?

544


What is sorting in c#?

521


How do you sort an array in c#?

498