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
For methods inside the interface why can’t you specify the accessibility modifier?
How do I create a new form in c#?
What happens when thread sleep () method is called?
What is xml serialization and deserialization in c#?
What is integer c#?
Can you explain template pattern?
What is single dimensional array in c#?
How many types of interface are there in c#?
What is sql transaction in c#?
what is the default access for a class
How is exception handling implemented in c#?
What is the meaning of console writeline in c#?
What is an expression in c#?
What do you mean by directing?
What Is A Satellite Assembly?