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 |
What is .net framework in simple terms?
Can we add constraints to the route? If yes, explain how we can do it?
Where do the reference-type variables go in the RAM ?
what is MVC pattern?
What is RouteConfig.cs in ASP.Net MVC 4?
Explain what is the difference between view and partial view?
Is it possibe to run 2 aplication on single m/c, one App is on .Net Framework 1.0 and another one is on .Net Fremework 2.0?
How does work clr?
What are sections?
How does the 'page lifecycle' of asp.net mvc works?
What is difference between razor and web form engine?
what is Thread Priority?