Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain the Usage of web.config

956


How to achieve polymorphism in c#?

911


What is helper method in c#?

871


What is a virtual property. Give an example?

888


What is a strong name in c#?

1311


What is application c#?

827


Is c# pass by reference?

840


Can we create extension method for interface?

845


In which order the constructor is called for an inherited class?

960


Name the connections does microsoft sql server support?

871


What are the different types of constructors?

928


What is the use of base keyword? Tell me a practical example for base keyword’s usage?

851


What is class and object c#?

852


Why linq is having select clause at the end?

865


Are c# strings immutable?

837