Wats the diff between sealed class and private class in
inheritance
Answer Posted / robert j
We can not put private,protected, internal protected over
the classes.. it is public by default...
The main purpose of putting "sealed" for the classes is to
prevent the other classes to refer it.It's functionality
can not be shared..
The important point is , "sealed" class can inherit from
any other non-sealed classes.. But no other classes can
inherit from a sealed class..
| Is This Answer Correct ? | 8 Yes | 6 No |
Post New Answer View All Answers
What is the difference between list and array in c#?
Why do we use hashtable in c#?
what is the difference between the debug class and trace class?
What are delegates?
What are the different ways of method can be overloaded?
Explain About namespaces
What is use of singleton class in c#?
What is keywords in c#?
What is difference between ienumerable and iqueryable in c#?
What is the use of ienumerable in c#?
Explain About a class access specifiers and method access specifiers.
Is array thread safe c#?
What is datatable in c#?
What is the difference between Decorator and Adapter pattern?
Can destructors have access modifiers?