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 kind of the information stored inside the assembly?
how to compare numbers and dispaly the largest ? *first thing I wanted to do is to input how many numbers to be compared *and then analyzed the largest then display it.
How to find out that the code is written as managed or un-managed code?
Which namespace is required to implement trace ?
What does writeline mean?
What is the difference between System.console.WriteLine() and System.console.Write() function?example?
Describe a Struct ?
What is difference between a constant and read-only in C#?
Explain the difference between passing parameters by value and passing parameters by reference with an example?
What are the Uses of CLR
What is a nested type. Give an example?
Structs are largely redundant in c++. Why does c# have them?
Can derived classes have greater accessibility than their base types?
Can you call from an inherited constructor to a specific base constructor if both base class and an inheriting class has a number of overloaded constructors?
Explain the use of Mutex in C#?