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

Explain types of comment in c# with examples

483


what are some characteristics of an array?

525


Can we inherit partial class in c#?

505


What are the 3 logical operators?

566


What is instantiating a class?

512






Explain how many types of exception handlers are there in .net?

474


Explain anonymous type in c#?

526


Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?

520


What is stringreader in c#?

492


What are c# i/o classes? What are the commonly used i/o classes?

519


What are c# types?

527


Explain how do I convert a string to an int in c#?

520


What is using directive in c#?

502


How do you declare a method in c#?

495


How do you concatenate in c#?

489