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
How to bind table colum with gridview column?
how can you tell ef to have a different table or column name than that defined for the class?
How route table is created in ASP.NET MVC?
Which filter executes first in an asp.net mvc application?
How to return the JSON from action method in ASP.Net MVC?
What is entitytypes? : Entity framework
What is the advantage of using asp.net routing?
Where are the routing rules defined in an asp.net mvc application?
what is explicit loading?
How to enable Attribute Routing?
how do you mark a property as required? For example, for a project, the name is a required field.
Explain what is the difference between view and partial view?
Are there any parts of the .net framework 3.0 that only work on windows vista?
Which are the important namespaces used in ASP.Net MVC?
How does the 'page lifecycle' of asp.net mvc works?