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
How to achieve polymorphism in c#?
What's the difference between WindowsDefaultLocation and WindowsDefaultBounds?
How do you prevent a class from being inherited in c#?
What is the difference between delegates and superdelegates?
What is callback in c#?
Does google use c#?
What is the difference between firstordefault and singleordefault?
How big is an int16?
What is a method signature in c#?
What is lazy t?
How to reverse each word in a string using c#?
Why static constructor is parameterless in c#?
What is use of abstract class in c#?
How big is int16?
Define parsing? Explain how to parse a datetime string?