What Are Operators Overloading in C++? Why They Are Needed?

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

Post Graduate in Engg

An operator has some normal meaning in C++. Like e.g. + sign means you are adding two numbers etc. When you wish to give some different meaning to that operator - we call "the operator is overloaded" e.g. Using the same + sign we may add two strings to get combined string or we may add properties of...
read more
An operator has some normal meaning in C++. Like e.g. + sign means you are adding two numbers etc. When you wish to give some different meaning to that operator - we call "the operator is overloaded" e.g. Using the same + sign we may add two strings to get combined string or we may add properties of two object to generate a third object read less
Comments

CS Master

Operator overloading is an important concept in C++. It is a type of polymorphism in which an operator is overloaded to give user defined meaning to it. Overloaded operator is used to perform operation on user-defined data type. For example '+' operator can be overloaded to perform addition on various...
read more
Operator overloading is an important concept in C++. It is a type of polymorphism in which an operator is overloaded to give user defined meaning to it. Overloaded operator is used to perform operation on user-defined data type. For example '+' operator can be overloaded to perform addition on various data types, like for Integer, String(concatenation) etc. read less
Comments

It is to change the functionality of a given operator like + operation can be overloaded for adding two complex number which is slightly different from normal addition u can define that as a method
Comments

View 1 more Answers

Related Questions

What is the difference between an MS word, an MS Excel, and an MS PowerPoint?
All three are applications of Microsoft office. MS Word is a word processing application, where you can type anything you want, primarily used for creating documents, brochures etc. MS Excel is a spreadsheet...
Krishna
0 0
5
I want to be expert in ethical hacking and work for government
start wid basics..lik networking ....linux..windows...den study online tutorials... u will get an idea about hacking..if u really wan to know d world of hacking...search carding..deepweb..bitcoins hacking...etc..
Rashi
Where I can start learning ethical hacking?
I can teach you ethical hacking.. i am a certified security consultant
Sai
0 0
5
How do I send a C program via email?
upload your file in gdrive then use that link you can easily email that program
Furqankhan
0 0
5

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

What is Unit Testing?
What is Unit Testing? Unit testing is the testing of a single entity (class or method). Unit testing is very essential for every software company to give a quality product to their customers.

How iCert Global empowers the Professionals across the Globe
iCert Global is the fastest growing Education Industry, both as an Accredited Training Organization (ATO) and Accredited Examination Centre (AEC). Recollection It was a humble beginning in a 1 BHK flat....

What is Identity and Access Management (IAM) in AWS ?
Slide -1:Identity and Access Managment (IAM)? AWS Identity and Access Management (IAM) is a web service that helps you securely control access to AWS resources for your users. You use IAM to control...
S

Sarath R.

0 0
0

Starting Career in Android Development
Starting career in Android has become trouble free now. There is a lot of content available online to start learning Android. Just type “Android development” in Google and you will be flooded...

Tally ERP 9 Shortcuts
Shortcuts: Company Info: Alt+F3 Select Company: F1 Shut Company: Alt+F1 Change Period: Alt+F2 Change Date: F2 Ledger ccreation in Voucher entr: yAlt+C Contra Voucher: F4 Payment Voucher: F5 Receipt...

Recommended Articles

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Looking for IT Courses ?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you