Category Python OOPS

Inheritance in Python

Inheritance in Python

Building related classes in Python starts with deciding what behavior the new class should share. Inheritance lets a new class, called a subclass, reuse behavior from an existing class. This article shows how to define a subclass and extend an…

What Does the @ Symbol Do in Python?

What Does the @ Symbol Do in Python?

When you write or review a Python function, an @ line above def can be hard to interpret at first. In Python, @ applies a decorator to the function being defined, while between operands it requests matrix multiplication. I’ll show…

Python Classes and Objects

Python Classes and Objects

Python classes are the foundation of every non-trivial program. After years of using them daily, I have a good sense of what actually helps someone grasp this material quickly and what just confuses people. This guide is the article I…

Top 100 Python OOP MCQs for Coding Exams (2026)

Top 100 Python OOP MCQs for Coding Exams (2026)

OOPs (Object-Oriented Programming) means writing code using objects and classes. There are four pillars of OOP: inheritance (reusing properties of a parent class), polymorphism (one interface, multiple behaviours), encapsulation (hiding data inside classes), and abstraction (showing only essential details). Python…

What Is __init__.py Used For?

What Is __init__.py Used For?

Imagine you’re doing a project. You went and downloaded a package you needed for it, and when you opened the package, what do you see? A file named __init__.py is present in it that no one told you about. Ever…