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 sqlconnection in c#?
Explain how can I get around scope problems in a try/catch?
Explain circular reference in c#?
Why data types are important in c#?
What is executenonquery c#?
What is data type c#?
What are handlers in c#?
What is an enumerator c#?
what is IDisposal interface
What is primitive types in c#?
What is a console operator?
Explain synchronous and asynchronous operations?
Is c# an open source?
Difference between value and reference type. What are value types and reference types?
Can we inherit static class in c#?