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

What is function overloading?,describe it with the example.

Answer Posted / jyoti lohani

A class having same name with the same function name but
having different parameter . the paramerter are sequence of
parameter, number of parameter, & types of parameter.
that's call function overloading.

EX:- public int fun(int a,int b);
public int fun(string a, string b)

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is destructor oops?

1035


write string class as your own class in java without using any built-in function

2443


Why it is called runtime polymorphism?

1048


What is polymorphism programming?

1071


Plese get me a perfect C++ program for railway/airway reservation with all details.

3839


What is an example of genetic polymorphism?

1116


What is difference between inheritance and polymorphism?

976


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

2096


What are the 5 oop principles?

1070


what type of question are asked in thoughtworks pair programming round ?

2144


class type to basic type conversion

2338


What are the advantages of polymorphism?

976


What is the purpose of polymorphism?

1084


What is interface in oop?

1074


Can we create object of interface?

1064