what is the use of final method
Answers were Sorted based on User's Feedback
First of all sealed in c# is equivalent to final in java.
Sealed is used to stop further overriding an abstract method.
E.g:
public abstract class A
{
public abstract void print();
}
public class B:A
{
public sealed override void print()
{
Console.WriteLine("First override");
}
}
public class C:B
{
public override void print() //This will give compilation error.
{
Console.WriteLine("Second override");
}
}
| Is This Answer Correct ? | 0 Yes | 0 No |
What is entity sql? : Entity framework
Where does web.config info stored? Will this be stored in the registry ?
1 Answers Accenture, BirlaSoft,
What are Action Methods in ASP.NET MVC?
Does the .NET Framework have in-built support for serialization?
Why is entity framework used?
Does .NET Framework support SAX?
How to change the action name in ASP.Net MVC?
How can we determine action invoked from HTTP GET or HTTP POST?
Why is XmlSerializer so slow
When was .NET announced
How does work clr?
What is shadowing?