Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
Python
21.3K+ articles
Misc
8.8K+ articles
Python Programs
4.0K+ articles
School Programming
1.5K+ articles
python
1.2K+ articles
Programming Language
594+ articles
python-oop-concepts
91+ articles
Python-OOP
66+ articles
Python Testing
60+ articles
Python Oops-programs
15 posts
Recent Articles
Popular Articles
Class as Decorator in Python
Last Updated: 29 July 2024
While function-based decorators are widely used, class-based decorators can offer more flexibility and better organization, especially when the decorator needs to maintain...
read more
Python
Programming Language
Python Programs
School Programming
Python Oops-programs
How to create a list of object in Python class
Last Updated: 15 April 2025
In Python, creating a list of objects involves storing instances of a class in a list, which allows for easy access, modification and iteration. For example, with a Geeks ...
read more
Python
Python-OOP
Python Oops-programs
Student management system in Python
Last Updated: 04 August 2022
Problem Statement: Write a program to build a simple Student Management System using Python which can perform the following operations:AcceptDisplaySearchDeleteUpdatePrere...
read more
Python
Python Programs
Python-OOP
Python Oops-programs
How to create an empty class in Python?
Last Updated: 29 December 2020
A class is a user-defined blueprint or prototype from which objects are created. Class can be considered as a user-defined data type. Generally, a class contains data memb...
read more
Python
Python Programs
Python-OOP
Python Oops-programs
How to Change a Dictionary Into a Class?
Last Updated: 29 December 2020
Working with Dictionary is a good thing but when we get a lot of dictionaries then it gets tough to use. So let's understand how we can convert a dictionary into a class.A...
read more
Python
Picked
python-dict
Python-OOP
Python Oops-programs
Object oriented testing in Python
Last Updated: 01 October 2020
Prerequisite: Object-Oriented TestingAutomated Object-Oriented Testing can be performed in Python using Pytest testing tool. In this article, we perform object-oriented te...
read more
Python
Python Oops-programs
Python Testing
What is a clean and Pythonic way to have multiple constructors in Python?
Last Updated: 05 February 2024
Python does not support explicit multiple constructors, yet there are some ways to achieve multiple constructors.We use Python's inbuilt __init__ method to define the cons...
read more
Python
python-oop-concepts
Python-OOP
Python Oops-programs
Shuffle a deck of card with OOPS in Python
Last Updated: 31 March 2023
The objective is to distribute a deck of cards among two players. The code for the Shuffle Deck of Cards in Python can be used to shuffle the cards. The shuffle method, wh...
read more
Misc
Python
Python-OOP
Python Oops-programs
How to count number of instances of a class in Python?
Last Updated: 29 December 2020
Instances of a class mean the objects created for a particular class. A single class can have multiple objects of it. Here, we will find the count of the number of instanc...
read more
Technical Scripter
Python
Picked
Technical Scripter 2020
Python-OOP
Python Oops-programs
Python program to build flashcard using class in Python
Last Updated: 06 September 2024
In this article, we will see how to build a flashcard using class in python. A flashcard is a card having information on both sides, which can be used as an aid in memoiza...
read more
Python
Python Programs
Picked
Python-OOP
Python Oops-programs
Get index in the list of objects by attribute in Python
Last Updated: 19 December 2021
In this article, we'll look at how to find the index of an item in a list using an attribute in Python. We'll use the enumerate function to do this. The enumerate() functi...
read more
Python
Picked
Python-OOP
Python Oops-programs
Attaching a Decorator to All Functions within a Class in Python
Last Updated: 16 July 2024
Decorators in Python allow us to add extra features to functions or methods of class without changing their code. Sometimes, we might want to apply a decorator to all meth...
read more
Python
Picked
Python Oops-programs
Why do Python classes inherit object?
Last Updated: 08 August 2024
In Python, every class you create inherits from a special class known as an object. This foundational element simplifies and empowers Python programming. When a new class ...
read more
Python
Picked
Python Oops-programs
Diamond Problem in Python
Last Updated: 27 December 2024
Diamond problem is also known as the "Deadly Diamond of Death", This problem mainly occurs in object-oriented programming in Python. It mainly arises when a class inherit...
read more
Python
python
Python Oops-programs
Python OOPs Exercise Questions
Last Updated: 21 January 2025
Ready to level up your Python object-oriented programming skills? Explore our collection of Python OOP exercises, packed with over 25 engaging problems to help you master ...
read more
Python
Python Programs
Web Technologies
Python Oops-programs
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !