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
What is the difference between int and int in c#?
What is unrecognized escape sequence in c#?
Can we have static indexer in c#?
What is assembly c#?
Explain different properties of object oriented systems.
Can we inherit static class in c#?
What is the lock statement in c#?
What are strongly typed objects?
Explain streamreader/streamwriter class?
Is c# the same as d flat?
what is the default access for a class
Explain the difference between pass by value and pass by reference.
How many bytes is an int?
What are boxing and unboxing?
Explain the difference between abstract class and interface.