Answer Posted / sudhir sheoran
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 |
Post New Answer View All Answers
What is viewdata?
Is .net core faster than .net framework?
What is renderbody?
What is the version number for the next version of the .net framework, codenamed �orcas�?
Is dapper faster than entity framework?
What is attribute routing in mvc?
Is razor a server side?
Explain the advantages of dependency injection (di) in asp.net mvc?
what is minimum requirement for entity framework applications to run?
When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?
What is domain class model?
mention what is the difference between ado.net and classic ado?
How can I tell what .net framework is installed?
What are the advantages of razor view engine?
i just want to write an exam regarding .net?plz give me information about taking a test?where to pay 4 d exam,exam centre?