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

Are private members inherited in c#?

742


Which of the following API is used to hide a window?

749


What is string method in c#?

665


what is a structure in c#

990


What is scaffolding in c#?

679


Is stringbuilder thread safe c#?

630


While debugging a C# application can you change the value of a variable?

733


Explain what a diffgram, and a good use for one Define diffgram? How it be used?

725


Which is more efficient for loop or while loop?

631


What is querystring in c#?

685


How do you prevent a method from being overridden in c#?

642


What is difference between constants and read-only?

634


What is list array in c#?

635


What to implement on my class Finalize or IDisposable

730


What is pure abstract class in c#?

650