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

Asked by Last Modified  

3 Answers

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

I completed my graduation in 2017, now working as an HR Executive in a Consultancy. I want to move to IT Sector. Which course is best for me to learn and get success in life? Please Suggest me
Dear Kumar, My suggestion is to - become good in one programming language - preferably Java and one O/S preferably Linux. Be aware of Open Source systems. Try to identify the opportunities in your existing...
Kumar
What is openstack ?
OpenStack is open source platform for building and managing cloud computing platforms for public and private clouds in a cloud computing environment.
Vivek
hat is java
Java is high level programming language. Java is platform independent and robust.
Narendra
0 1
8

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

Ask a Question

Related Lessons

Why you need CCNA R&S certification?
Many students seek CCNA R&S training for the Cisco Certification. There is a dilemma within students whether to opt for these certifications or not.Over and above the College DegreeWe believe after...

Diploma in Cyber Security & Forensics
Program Highlights: * Computer Fundamentals & IT Applications * Core Java * Web & Graphics Designing * Python Language * Linux * Advance Android Development (Application...

What is the difference between PHP and PYTHON
Let's start with PHP: - Ideal for standard web development- Easy integration with MySQL- $_GET and $_POST built into the language- C-Esque syntax Primarily used on an Apache server (Routinely, you...

How to get into cybersecurity in 2024
Demand for Cybersecurity professionals is high and growing Entry-level positions may not require a formal degree and instead prioritize skills Coming from a technical field with transferable skills...

What is Hyperion?
- Its an Business Intelligence tools. Like Brio which was an independent product bought over my Hyperion has converted this product name to Hyperion Intelligence. Is it an OLAP tool? - Yes. You can analyse...

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