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 |
how to face first interview in .NET?
What's the difference between const and readonly ?
What are the types of authentication in .net
Can you set the unlimited length for "maxjsonlength" property in config?
Can Static Constructor be Overloaded?Justify it?
How can you return string result from Action in ASP.Net MVC?
Is the lack of deterministic destruction in .NET a problem
Which is the best institute for .net?
What is .NET Framework?
Is http stateful or stateless?
Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?
What is needed for running an application built on winfx on the .net framework 3.0?