English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

What is operator overloading? Give some examples of operators which can be overloaded. - Computer Science

Advertisements
Advertisements

Question

What is operator overloading? Give some examples of operators which can be overloaded.

Short Note

Solution

The term operator overloading refers to giving additional functionality to the normal C++ operators like It is also a type of polymorphism in which an operator is overloaded to give user-defined meaning to it.

For example, the ‘+’ operator can be overloaded to perform addition on various data types, like for Integer, String (concatenation), etc.

shaalaa.com
  Is there an error in this question or solution?
Chapter 15: Polymorphism - Evaluation - Section - C [Page 257]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 11 TN Board
Chapter 15 Polymorphism
Evaluation - Section - C | Q 3. | Page 257
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×