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
Are private members inherited in c#?
Which of the following API is used to hide a window?
What is string method in c#?
what is a structure in c#
What is scaffolding in c#?
Is stringbuilder thread safe c#?
While debugging a C# application can you change the value of a variable?
Explain what a diffgram, and a good use for one Define diffgram? How it be used?
Which is more efficient for loop or while loop?
What is querystring in c#?
How do you prevent a method from being overridden in c#?
What is difference between constants and read-only?
What is list array in c#?
What to implement on my class Finalize or IDisposable
What is pure abstract class in c#?