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 |
Will c# 3.0, vb.net 9.0, atlas, or linq be included in the .net framework 3.0?
If Controller is not there in MVC Pattern what happens?
if u add an import stmt to an application u can do the same by adding reference to the apllication then what is the diff bet these two ?
What is difference between viewbag and viewdata and tempdata?
What is layout in mvc?
What is a view engine?
Is the following route definition a valid route definition? {controller}{action}/{id}
What are ajax helpers in asp.net mvc?
How to change the action name in ASP.Net MVC?
Explain something about model, view and controllers in asp.net mvc?
Is the lack of deterministic destruction in .NET a problem
what is MetadData?. What is CTS? Type of Join in SQL Server? What is diffrence between Primary Key and Unique Key?