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 about multithreading?
What is difference between .net and c#?
Why main is static in c#?
Why do we use delegates in c#?
What is the object class in c#?
What is the base class from which all value types are derived?
What is the use of 'as' Keyword in C# ?
How does yield return work c#?
Why data types are important?
How long does it take to get a loop recorder put in?
Differentiate between dataset and datareader?
How many dimensions can an array have?
What are the Types of compatabilities and explain them
What is mvc pattern in c#?
Can a struct inherit from another struct or class in c#?