What Is Operator Overloading?

Operator overloading is to redefine an existing operator and give it another function to accommodate different data types.

Operator overloading

Right!
Operator overloading,
Languages that support operator overloading and define new operators:
  • SQL dialect for PostgreSQL
  • Ruby
  • Haskell
Languages that support operator overloading:
  • Ada
  • C ++
  • C #
  • D
  • Perl
  • Python
  • Pico (to some extent)
  • Pascal (Free Pascal Dialect only)
  • FreeBASIC
  • Visual Basic (requires Visual Basic .NET 2008 or later)
Languages that do not support operator overloading:
  • C
  • Delphi
  • Java
  • Objective-C

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?