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

Answer Posted / rabih

two functions with same but different signature

example let take function name test return int and take a
parameter of type int (int test(int x))

let take same function of name test with different
signature void test(int x) or int test(bool n) or
int test(int x,string y)

all these functions can written in same class without any
error this means same function name(test)
different signature is deffernet return type or different
paraemeter type

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the data types in oop?

1102


what are the ways in which a constructors can be called?

2139


What is the types of inheritance?

1098


What are the 5 oop principles?

1127


What is difference between multiple inheritance and multilevel inheritance?

1150


What is object in oop with example?

1241


What is the important feature of inheritance?

1143


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1921


Why is oop useful?

1107


What are the advantages of polymorphism?

1033


What is abstract class in oops?

1026


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

2609


What is basic concept of oop?

1168


Why do we use inheritance?

1129


What is class and object in oops?

1145