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 and operator overloading?

Answer Posted / jerry

function overloading - function name will be same but
operation will be different for eg:

if we take the function as area
then 1. area(int x,int y)
2. area(int x);
these r the two functions with the same name but
they will differ by their arguments given
for the 1st function
it becomes the area of the rectangle=x*y
for the 2nd function it becomes the area of square=x*x


coming to the operator overloading,
it is an overloading function of an operator.
if we + as an operator
a+b then + is operator for the operands a,b
c+d then + is also an poperator for the c,b.
these r the two properties of polymorphism.

Is This Answer Correct ?    53 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

2050


What is polymorphism in oop example?

969


officer say me - i am offered to a smoking , then what can you say

2053


What is the highest level of cohesion?

991


What is oops concept with example?

975


Describe these concepts: Polymorphism, Inheritance and Abstraction.

1151


What are objects in oop?

1045


What is the significance of classes in oop?

1074


What is data binding in oops?

1036


Why do pointers exist?

1050


What is polymorphism what are the different types of polymorphism?

956


What does sksksk mean in text slang?

2066


How oops is better than procedural?

1038


How to hide the base class functionality in Inheritance?

1100


What is use of overloading?

1088