write the Syntax for Function or Method Overriding?

Answer Posted / madhu nagidi

//Below is syntax for function
function test_func()
{

}

//Below is syntax for Method Overriding

Class JJ
{
Test_method(string a, string b)
{
a="Google";
}
}
class MM : JJ
{
Test_method(string a, string b)
{
a = "Micorsoft";
}
}
//Here overriding the functionality of the method which is
in Base Class.

Is This Answer Correct ?    1 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is method overriding in c#

597


Explain clr in brief.

551


What is a generic c#?

487


What is serialization in unity?

493


What method is used to sort the elements of the array in descending order?

566






What is the property of class?

576


Describe an abstract class?

555


what is main function of alternate teamplate of datalist?

1638


What is a console application in c#?

446


Is Multiple-inheritance supported by c#?

579


Name some properties of array.

479


What is difference between ienumerable and list in c#?

445


Can we create extension method for interface?

492


What is state c#?

436


What is nameof c#?

483