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...

explain about method overloading and method overriding with
difficult examples

Answer Posted / mayank sharma

Clas A
{
Virtual void hi(int a)
{
}
}

Class B:A
{
public overrid void hi(int a)
{

}
}

Overloading simply involves having a method with the same
name within the class.

Example for Over loading

Class A
{
class a()

{

}
class a(int a)
{
}
}

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java ceil?

1038


What is the size of integer?

1094


What is the biggest integer?

1055


Why stringbuffer is faster than string?

1045


What is method reference?

986


Why is boolean important?

1069


Why java is platform independent? Explain.

1012


When do I need to use reflection feature in java?

1084


Is arraylist zero based?

1075


Does garbage collection occur in permanent generation space in jvm?

1089


What is the main purpose of java?

1097


What is java virtual machine? Explain

1036


How do you clear a method in java?

1012


What is an abstract class and what is it’s purpose?

963


What are the main uses of this keyword?

1066