How can you prevent classes to be inherited?
Answer Posted / vijay sharma
We can prevent classes to be inherited by marking the
classes as sealed.
Is This Answer Correct ? | 24 Yes | 0 No |
Post New Answer View All Answers
What are the fundamental differences between value types and reference types?
How do you inherit a class into other class in c#?
Can we inherit a private class in c#?
Where is the keyword void used?
What are destructors in C#?
What is the difference between int and int in c#?
What is difference between new and override in c#?
Explain the difference between // comments, /* */ comments and /// comments?
Define c# i/o classes? List the commonly used classes?
what is a destructor?
What is asax file in c#?
Why singleton class is sealed?
What is the difference between “constant” and “readonly” variables in c#?
Is c# slower than java?
What is the difference between abstract and abstraction?