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 a derived class in c#?
What is ienumerable <> in c#?
What is default c#?
What is concatenation and when should it be used?
Can you see a loop recorder?
Write a short note on interface?
What language do desktop applications use?
What are the different ways of method can be overloaded?
What can we do to handle multiple exceptions?
What is Implementation inheritance and interface inheritance?
How to declare a property in a class?
What is the compiler of c#?
What do u mean by thread safe?
What are types in c#?
What is escape sequence in c#?