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

Hi Friends..


can any one provide the real time example for
methodoverloading and methodoverriding .........

Answer Posted / aravind

Example Method:

public void method(int a)
{
....;
....;
}

Method Overloading:
class
{
method(140,1,10,250);
}

Method Overriding:
re implement same method in a class with same or additional
attributes.

method()
{
...;
}

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by the bean persistent property?

951


List two java ide’s?

991


How do you write a scanner class in java?

959


What does it mean to flush a file?

1008


Difference between ‘is-a’ and ‘has-a’ relationship in java?

947


What is charat java?

909


What is the difference between a synchronized method and a synchronized block?

1017


What is method overloading and method overriding?

1003


Difference between throw and throws?

1049


Can vector have duplicates in java?

887


Can we create object of inner class in java?

884


Name some classes present in java.util.regex package.

983


What are the two types of exceptions in java? Which are the differences between them?

1037


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

1021


What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

932