The feature in Python that allows the same operator to have different meaning according to the context is called operator overloading.
Category:
OOPs in Python
-
-
OOPs in Python
Python Multiple Inheritance : How to get DNA from Multiple Parents
by WhereWhatHowby WhereWhatHowA class can be derived from more than one base class in Python, similar to C++. This is called multiple inheritance. In multiple inheritance, the features of…
-
OOPs in Python
Python Inheritance : How to pass on DNA to child classes
by WhereWhatHowby WhereWhatHowLike any other OOP languages, Swift also supports the concept of class inheritance. Inheritance allows us to create a new class from an existing class.
-
OOPs in Python
Python Objects and Classes : What you need to know about it
by WhereWhatHowby WhereWhatHowIn the last tutorial, we learned about Python OOP. We know that python also supports the concept of objects and classes. An object is simply a collection of…
-
OOPs in Python
Object Oriented Programming : How to use Classes in Python
by WhereWhatHowby WhereWhatHowPython is a multi-paradigm programming language. It supports different programming approaches. Python is also an object oriented programming language.