How can you prevent your class to be inherated further
Answer Posted / kirti
By setting Sealed - Key word
public sealed class Planet
{
//code goes here
}
class Moon:Planet
{
//Not allowed as base class is sealed
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what do you mean by table-per-type?
What are the sub types of ActionResult?
What are the versions of .net framework?
What is conceptual model? : Entity framework
What is presentation framework?
Why is the .net framework 3.0 a major version number of the .net framework if it uses the .net framework 2.0 runtime and compiler?
What is the use of the default route?
Name a few different return types of a controller action method?
How does servicing work for the .net framework 3.0? If I install the .net framework 3.0, can I get service updates for the .net framework 2.0?
Is it possible to cancel filter execution?
Is it possible to share a view across multiple controllers?
Explain the tools used for unit testing in ASP.Net MVC
What are the Core features of ASP.NET MVC?
what is entity graph in entity framework?
What is the advantage of using asp.net routing?