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
Explain the process of inheriting a class into another class?
Define encapsulation?
Contrast between an interface and abstract class?
What is difference between ienumerable and enumerable in c#?
What is the advantage of constructor?
Does the system.exception class have any cool features?
what are the different ways a method can be overloaded?
What is the importance of closing an ado.net application?
Can we inherit a private class in c#?
What is the ouput of the following program?
What is difference between code access and role based security?
What are mutable and immutable types in c#?
Explain the difference between the system.array.copyto() and system.array.clone()?
Why is lazy loading?
How to transpose multi-dimensional array?