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


Please Help Members By Posting Answers For Below Questions

What is a collection class in c#?

671


What is the and operator in c#?

703


What is difference between constants and readonly in c#?

743


What is instantiating a class in c#?

679


What is yield return in c#?

699


What is the base class in .net from which all the classes are derived from?

716


How does it work?

680


Explain the process of polymorphism with an example?

671


What is difference between c and c sharp?

668


What is session and cookies in c#?

733


Explain how to parse a datetime string?

679


What is the difference between namespace and class?

649


What is the default value of date?

675


Why dictionary is faster than list?

749


How to put assembly in gac?

706