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
Explain how do you debug an asp.net web application?
What is the default modifier for class in c#?
When would you use generics in your code c#?
What is the difference between select and selectmany?
What is func c#?
What is executescalar in c#?
Define thread? Explain about multithreading?
What is string method in c#?
Is friend a constructor?
What is the difference between var and dynamic types in c# 4.0?
What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?
Why do we still see so much non-oo code written in c# today?
Differentiate between method overriding from method overloading with its functionality?
What is sorting in c#?
How do you sort an array in c#?