Python Intermediate: Operator Overloading

Veröffentlicht am: 01 Juli 2021
auf dem Kanal: BitCode
52
10

Welcome to another tutorial in the intermediate series, this tutorial is about operator overloading. So in programming terms operator overloading basically means using an operator for multiple different tasks. You can change the meaning of an operator in Python depending upon the operands used.
So for example we can use the + operator to add two numbers and get the addition of those numbers. And we can also use the + operator two concatenate two strings. So we are overloading the plus operator for different results.

: _add_ ()
: _sub_ ()
: _mul_ ()
== : __eq__()
!= : __ne__()

https://www.geeksforgeeks.org/operato...

Keyboard I Use: https://amzn.to/2NgjPFV
(Affiliate Link, Helps the Channel)

Discord Server:
  / discord  


Auf dieser Seite können Sie das Online-Video Python Intermediate: Operator Overloading mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer BitCode 01 Juli 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 52 Mal angesehen und es wurde von 10 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!