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 is entity framework firstordefault?
What is the use of view model in asp.net mvc?
What is a view engine?
Which is the default http method for an action method?
What is object service? : Entity framework
What symbol would you use to denote, the start of a code block in razor views?
What is the .net framework 3.0 (formerly winfx)?
How do you handle variable number of segments in a route definition?
What is entityset? : Entity framework
What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?
What is the .net framework?
what is entityclient?
what is entity graph in entity framework?
What are Model Binders in ASP.Net MVC?
Can you explain the page life cycle of mvc?