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 difference between tostring() vs convert.tostring() vs (string) cast
My switch statement works differently! Why?
What does the dispose method do with the connection object?
I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?
What is oledb in c#?
What is static and use of it?
Can a constructor be static in c#?
What's the difference between WindowsDefaultLocation and WindowsDefaultBounds?
Explain namespaces in c#.
What is a int in c#?
Can we inherit a private class in c#?
Why do we use inheritance in c#?
What is a web service in c#?
What are the uses of delegates in c#?
Is ram a heap?