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 many types of delegates are there in c#?
Define method overloading in c#?
What is base class in c#?
I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?
What's difference between constants and static readonly?
What does it mean?
Why do canadians say zed?
Explain the functionalities of satellite assembly?
What is sqlcommandbuilder c#?
What's the difference between a method and a procedure?
Describe the types of comments in c#?
Is string immutable in c#?
What is the benefit of using interface in c#?
Explain the difference between a namespace and assembly name in .net?
Explain the role of Garbage collector and its generations?