Can you prevent your class from being inherited and
becoming a base class for some other classes?
Answer Posted / dhanunjaya
yes,By using a keyword called "sealed".a sealed class can
never be a base class for any class,it is the bottom most
class in a class hierarchy.......so it cant be be base
class further more....
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is dynamic dispatch?
What is the different types of private assembly and shared assembly?
What is xamarin used for?
What's the c# syntax to catch any possible exception?
What are the properties in c#?
What is icomparer in c#?
What is the difference between read and readline in c#?
How does array sort work?
What is property in c#?
Why is c# a good programming language?
What is an array? Give the syntax for a single and multi-dimensional array?
Is namespace a class?
Can you instantiate an abstract class c#?
What are escape sequences explain with example?
What is the difference between ienumerable and enumerable?