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 are the 3 segments of the default route, that is present in an ASP.NET MVC application?
What is mvc entity framework?
what is linq to entities?
How to return the JSON from action method in ASP.Net MVC?
What is route config?
What is edm (entity data model)? : Entity framework
Explain the new features 3.5 framework against with the tool?
Is entity framework slow?
What is Separation of Concerns in ASP.NET ASP.Net MVC?
What is entity framework? : Entity framework
What is the .net framework?
How OS come to know whether to load the .net framework when we run an .exe created using .Net framework?
Do you know about the new features in ASP.Net MVC 4 ?
Explain what platforms does the .net framework run on?
Do you know about the new features in asp.net mvc 4 (asp.net mvc4)?