write the Syntax for Function or Method Overriding?
Answer Posted / ashish gupta
class base
{
public virtual func()
{
}
}
class derive:base
{
//override the base funcion..signature n return value
// must be same
public override func()
{
}
}
Is This Answer Correct ? | 19 Yes | 3 No |
Post New Answer View All Answers
What is a collection class in c#?
What is the and operator in c#?
What is difference between constants and readonly in c#?
What is instantiating a class in c#?
What is yield return in c#?
What is the base class in .net from which all the classes are derived from?
How does it work?
Explain the process of polymorphism with an example?
What is difference between c and c sharp?
What is session and cookies in c#?
Explain how to parse a datetime string?
What is the difference between namespace and class?
What is the default value of date?
Why dictionary is faster than list?
How to put assembly in gac?