write the Syntax for Function or Method Overriding?
Answer Posted / pritam kumar
class parent
{
public virtual void print()
{
Console.Writeline ("method from parent class");
}
}
class child:parent
{
public override void print()
{
Console.Writeline("method from base class ");
}
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How do I develop c# apps?
How garbage collection deals with circular references.
What is access specifier in c#?
What is difference between iqueryable and ienumerable in c#?
What do you mean by saying a "class is a reference type"?
What is asp net in c#?
What do you mean by the delegate in c#?
What is the difference between const and readonly in c#.net?
What is the and operator in c#?
What do you mean by directing?
What is generic types in c#?
What are Indexers in C#?
What is garbage collector and where should you use in .NET?
Explain how do I get deterministic finalization in c#?
Are structs value types or reference types?