Tag: Object oriented
-
pythonOperator Overloading in Python
Operator overloading refers to providing meaning that extends beyond their predefined operational meaning. For example, the operator + can be…
December 18, 2022
-
pythonStatic Keyword in Python
Class or Static Variables: In Python, a variable declared within a class but outside any method is referred to as…
December 17, 2022
-
pythonPolymorphism in Python
What is Polymorphism? Polymorphism is derived from the Greek words poly (many) and morphism (change) (forms). That is, the same…
December 16, 2022
-
pythonMethod Overriding in Python
Method overriding is a feature of any object-oriented programming language that allows a subclass or child class to implement a…
December 15, 2022
-
pythonTypes of Inheritance in Python
Types of Inheritance depend upon the number of child and parent classes involved. There are four types of inheritance in…
December 12, 2022
-
pythonInheritance in Python
Inheritance is a fundamental idea in object-oriented programming (OOP) languages. By deriving a class from another class, you can use…
December 12, 2022
-
pythonDestructors in Python
When an object is destroyed, the destructors are called. Destructors are not as necessary in Python as they are in…
December 12, 2022
-
pythonConstructor in Python
What is a Constructor? A constructor is a special method (function) used to initialize the class’s instance members. The main goal…
December 9, 2022
-
pythonPython Class
As we discussed in the previous tutorial, a class is a virtual entity that can be thought of as an…
December 8, 2022
-
C++Operator Overloading in C++
What is Operator Overloading? Operator overloading is a compile-time polymorphism in which the operator is overloaded to provide the user-defined…
October 29, 2022