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 a method signature c#?
How can I create a process that is running a supplied native executable (e.g., Cmd.exe)?
What is difference between managed and unmanaged code?
Is string a data type in c#?
What is sqldatareader c#?
How many constructors can a class have in c#?
How many constructor can a class have?
What is string programming language?
Why do we use struct in c#?
What is option parameter in C#?
What is nameof c#?
What does .length do in c#?
What is dictionary collection in c#?
Write a program in C# for checking a given number is PRIME or not.
What is asax file in c#?