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
In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?
what is .edmx file and what it contains?
Explain the .net framework.
What is entity framework firstordefault?
Explain ASP.NET MVC Identity and Security?
Explain something about model, view and controllers in asp.net mvc?
What are the 2 ways of adding constraints to a route?
What is .net core framework?
What are Code Blocks in Views?
What is the advantage of using asp.net routing?
Which are the important namespaces used in ASP.Net MVC?
What are the Core features of ASP.NET MVC?
List out few different return types of a controller action method?
What are scaffold templates in mvc?
What are the benefits of .net framework?