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
Explain types of comment in c# with examples
what are some characteristics of an array?
Can we inherit partial class in c#?
What are the 3 logical operators?
What is instantiating a class?
Explain how many types of exception handlers are there in .net?
Explain anonymous type in c#?
Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?
What is stringreader in c#?
What are c# i/o classes? What are the commonly used i/o classes?
What are c# types?
Explain how do I convert a string to an int in c#?
What is using directive in c#?
How do you declare a method in c#?
How do you concatenate in c#?