How can you prevent your class to be inherated further
Answer / 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 |
Types of assemblies that can be created in dotnet ?
What is difference between Viewbag and Viewdata in ASP.NET MVC?
In Server how to check whether model has error or not in ASP.Net MVC
What is the difference between model view and controller?
Describe the roles of clr in .net framework.?
In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?
If background completes its processing will it wait for foreground threads?
How do you handle variable number of segments in a route definition?
What is .net core framework?
What are Action Filters in ASP.NET MVC and its use?
Explain representational state transfer (rest) in detail?
why DotNetFramework is included in building a software