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

Is overriding of a function possible in the same class?

1006


What is cache memory in c#?

957


Name the connections does microsoft sql server support?

974


Can you use foreach iteration on arrays in c#?

1117


What is expression c#?

970


What is data quality assurance?

947


What is the CTS, and how does it relate to the CLS?

1039


What is class and object c#?

945


In a site to turn off cookies for one page which method is followed?

993


Is c sharp free?

967


Define c# i/o classes? List the commonly used classes?

1025


What is default c#?

995


Can list contain duplicates c#?

942


Explain the Abstract class in c#.net

1071


in object oriented programming, how would you describe encapsulation?

1082