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
Is c# slower than java?
What's the c# syntax to catch any possible exception?
What is ilist c#?
explain the three services model commonly know as a three-tier application.
Can a child class call the constructor of a base class?
Explain the 3 types of properties in c# with an example?
Why do we use partial class in c#?
In which way you can convert a value-type to a reference-type?
How to update the gui from another thread in c#?
What is data reader in c#?
what is an event? Define delegate?
What is xamarin used for?
Is a valid int value?
What is use of FormBoarderStyle Propertie
What is the base class of all classes in c#?