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 console used for?
What are types of constructor?
What is type system in c#?
State whether it is true to test a Web service you must create a windows application or Web application to consume this service or not?
What is ulong in c#?
Can class inherit from struct c#?
What is difference between code access and role based security?
What are primitive types in c#?
What is a variable in c#?
What are nested classes in c#?
What is the difference between dispose() and finalize() methods in c#?
How big is an int16?
Explain how can you clean up objects holding resources from within the code?
What is the use of main method in c#?
How many digits are in an integer?