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
Is overriding of a function possible in the same class?
What is cache memory in c#?
Name the connections does microsoft sql server support?
Can you use foreach iteration on arrays in c#?
What is expression c#?
What is data quality assurance?
What is the CTS, and how does it relate to the CLS?
What is class and object c#?
In a site to turn off cookies for one page which method is followed?
Is c sharp free?
Define c# i/o classes? List the commonly used classes?
What is default c#?
Can list contain duplicates c#?
Explain the Abstract class in c#.net
in object oriented programming, how would you describe encapsulation?