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 happens if a static constructor throws an exception?
What are sessions in c#?
Is it possible to inline assembly or il in c# code?
Define method overloading in c#?
How can I process command-line arguments?
what are implementation inheritance and interface inheritance?
What sort algorithm does c# use?
How do I create a single-file assembly?
What is constants in c#?
What is xml serialization and deserialization in c#?
What is a generic class?
What is the property of class?
Describe the ways of cleaning up objects in c#.
What does .length do in c#?
What are primitive types in c#?