How can you prevent classes to be inherited?
Answer Posted / nitin kumar tomar
just make the class sealed like
sealed public class classname
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What are virtual destructors?
What is a console in c#?
What is difference between === and ==?
How do I declare inout arguments in c#?
What is an interface class in c#?
Explain the types of Polymorphism.
Is c# a technology?
In which way you can convert a value-type to a reference-type?
What is stringwriter c#?
Does hashset allow duplicates c#?
What are examples of desktop applications?
Why is main static in c#?
What is returned if you pass the value 12.34 to the parsefloat () function?
How does foreach loop work in c#?
Can a struct inherit from another struct or class in c#?