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 CLR and its application.?
what is object-oriented programming (oop) language?
Can a struct inherit from an interface in c#?
What is form feed in c#?
Why is main static in c#?
What is dynamic in c#?
How can we set class to be inherited, but prevent the method from being over-ridden?
How to add controls dynamically to the form using c#.net.
What is the symbol used for in c#?
Is java better than c#?
Can we have only “try” block without “catch” block in c#?
What are c# i/o classes? What are the commonly used i/o classes?
What are verbatim strings in c#?
What are the steps for creating clr trigger
Does c# support multiple inheritance (mi)?