Python OOPS

Python classmethod()

Python classmethod() is a built-in function of the Python standard library! There are three types of methods in Python: Instance Method Class Method Static Method Here, in this article, we’re going to discuss and focus on the class method of Python. So let’s get started. What is a Python classmethod()? A Python classmethod() can be […]

Python classmethod() Read More »

Understanding Abstraction in Python

Inroduction Today in this tutorial, we are going to discuss the concept of Abstraction in Python for the Object-Oriented Programming approach. If you are new to OOP, we highly recommend going through our Object-Oriented Programming in Python article. Basically, Abstraction focuses on hiding the internal implementations of a process or method from the user. In

Understanding Abstraction in Python Read More »

Encapsulation In Python

When working with an Object Oriented Programming language like Python, encapsulation in Python is one of the 4 important concepts to understand. The other three are inheritance, polymorphism, and abstraction. What is Encapsulation? When working with classes and dealing with sensitive data, providing global access to all the variables used within the program is not

Encapsulation In Python Read More »

Polymorphism in Python

Polymorphism means having vivid or different forms. In the programming world, Polymorphism refers to the ability of the function with the same name to carry different functionality altogether. It creates a structure that can use many forms of objects. This permits functions/arguments to use entities of different types at different times. In object-oriented programming, Polymorphism

Polymorphism in Python Read More »

Object-Oriented Programming in Python

Object-oriented programming (OOP) refers to the software design wherein programmers define the data type of a data structure, and the types of functions that can be applied to the data structure. This paradigm provides functionalities and behavior pattern to the structure of data. This paradigm maps and models real-world things together and describes a relationship

Object-Oriented Programming in Python Read More »

Python Multiple Inheritance

When a class inherits from more than one class, it’s called multiple inheritances. Python supports multiple inheritances whereas Java doesn’t support it. The properties of all the super/base classes are inherited into the derived/subclass. Python Multiple Inheritance Syntax The syntax for Multiple Inheritance is also similar to the single inheritance. By the way, the derived

Python Multiple Inheritance Read More »