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
What is method overriding in c#
Explain clr in brief.
What is a generic c#?
What is serialization in unity?
What method is used to sort the elements of the array in descending order?
What is the property of class?
Describe an abstract class?
what is main function of alternate teamplate of datalist?
What is a console application in c#?
Is Multiple-inheritance supported by c#?
Name some properties of array.
What is difference between ienumerable and list in c#?
Can we create extension method for interface?
What is state c#?
What is nameof c#?