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
What is the use of convert toint32 in c#?
What is the main usage of keyword “virtual†? How does it work for a method or property?
What is the extension of c# file?
What are the types of attributes in c#?
What is meant by collections in c#?
Who is a accessibility modifier “protected internal†available to ?
Give some examples of commonly used i/o classes?
Why constructor is used in c#?
Is learning c# hard?
How Global.asax is used ?
What is difference between encapsulation and abstraction in c#?
Is c# 8 released?
What is the difference between out and ref in c#?
How to reduce image resolution in C#?
Can firstordefault return null?