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
Explain the difference between proc. Sent by val and by sub?
What is the difference between namespace and class in c#?
Can a class have multiple constructors c#?
Why do we use delegates in c#?
How does dependency injection work c#?
Define constructors
Explain concurrency with aop?
What are the collections in c#?
List down the different ide’s provided by microsoft for c# development.
Explain circular reference in c#?
What do multicast delegates mean?
What does out mean in c#?
Explain the difference between “as” and “is” operators used in c#?
How to achieve polymorphism in c#?
What method is used to sort the elements of the array in descending order?