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 what a diffgram, and a good use for one Define diffgram? How it be used?

1013


What is string interpolation in c#?

963


How do I count the length of a string in c#?

974


Do extension methods have to be static?

1027


Differentiate between object pooling and connection pooling in c#?

994


Why we use delegates in c#?

908


What is a jagged array?

919


For methods inside the interface why can’t you specify the accessibility modifier?

953


How many destructors can a class have?

1035


What is private readonly in c#?

951


Is ram a heap?

921


What is different between Boxing and Unboxing?

1018


Can abstract class be sealed?

884


Can a private virtual method can be overridden?

989


Why do I get an error (cs1006) when trying to declare a method without specifying a return type?

940