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
Can list contain duplicates c#?
Which control cannot be placed in mdi?
What is the difference between throw and throw ex?
What is meaning of type safety in c#?
What is string method in c#?
Define parsing? Explain how to parse a datetime string?
What is serialization in c#?
Name some string escape sequences in c#.
What is the use of iqueryable in c#?
Does a class need a constructor c#?
What is the use of 'using' statement in c#?
What are escape sequences explain with example?
Give an example of removing an element from the queue?
Explain when should you call the garbage collector in .net?
How main method is called in c#?