UrbanPro

Learn IT Courses from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

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 best text editor for writing HTML and CSS?
Best Text Editors for HTML & CSS 1. VS Code -- Fast, extensions, IntelliSense. 2. Sublime Text -- Lightweight, fast, multi-cursor editing. 3. Atom -- Open-source, customizable (discontinued...
Janardan
0 0
5
What is the use of PERFORM in SAP ABAP?
PERFORM in SAP ABAP is a control statement used to call a block of code repeatedly. It's like a function call but simpler, executing the code within the PERFORM block and then returning control to the...
Muskaan
0 0
5
I want to become a Software Engineer.. but couldn't complete PUC (PCMC) .. and wasted a year and took Diploma my biggest fear is Maths .. now I have written my 4 sem exam nicely except MATHS.. what shall I do if I get a year back..?
go for software testing. First learn Manual Testing and then Automation (UFT or Selenium). Companies are paying too good amount to automation testers. Its not very much touch though and you can have...
Suhas
Hello, I am new in iOS development. What is the best way of learning iOS and Programming also?
You could start learning objective C for iOS app development. Please contact us for more information.
Vikas

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

Ask a Question

Related Lessons

Priority in TestNG
public class Priority { @Test (priority=1)public void login() {System.out.println("login");} @Testpublic void email1() {System.out.println("email1");} @Test (priority=-2)public void email2() {System.out.println("email2");} //I...
S

Sarthak C.

0 0
0

Datedif() Function
Purpose: This function calculates difference between two dates. it can show the result in days, months and years. Syntax: =datedif(start_date,end_date,"unit") start_date This is earliest...

Excel-Select All Data/Columns/Rows with One Click
You might know how to select all by using the Ctrl + A shortcut, but few know that with only one click of the corner button, all data/Columns/Rows will be selected in seconds.

What Are Your Skills | Resource Management
The human capital, with the exponential growth in population, is immeasurable huge. Today the talent pool is just terrific. Paradoxically, the skill gap persists despite the overwhelming numbers of resource....

SQL Tips (1 to 3)
SQL tip 1: Instead of Full Outer Join, you can use Union All. Difference is, Full Outer Join provides results side by side. Union All provides result s one by one. Note: MYSQL does not support Full...

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
X

Looking for IT Courses Classes?

The best tutors for IT Courses Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn IT Courses with the Best Tutors

The best Tutors for IT Courses Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more