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

What is CLR and its application.?

1039


what is object-oriented programming (oop) language?

869


Can a struct inherit from an interface in c#?

1004


What is form feed in c#?

950


Why is main static in c#?

957


What is dynamic in c#?

895


How can we set class to be inherited, but prevent the method from being over-ridden?

985


How to add controls dynamically to the form using c#.net.

882


What is the symbol used for in c#?

948


Is java better than c#?

926


Can we have only “try” block without “catch” block in c#?

863


What are c# i/o classes? What are the commonly used i/o classes?

921


What are verbatim strings in c#?

905


What are the steps for creating clr trigger

1037


Does c# support multiple inheritance (mi)?

935