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 are the options can be configured in AJAX helpers?
What is route config?
Can you explain renderbody and renderpage in mvc?
about triggers?
Explain how to use multiple submit buttons in ASP.Net MVC?
What is Partial Assembly References?
What is code first? : Entity framework
what are partial classes?
12 Answers Digimaker, HP, N Tech, TCS,
Can you write a class without specifying namespace? Which namespace does it belong to by default?
what is a round trip?What is a postback?
What is the difference between viewbag and viewdata in asp.net mvc?
Describe the .net framework architecture.