This repository is dedicated to mastering Object-Oriented Programming (OOP) concepts in Python, specifically structured to help with viva and interview preparation.
-
π§ OOP
- Introduction to Object-Oriented Programming in Python
-
ποΈ Pillars of OOP
- Encapsulation
- Abstraction
- Inheritance
- Polymorphism
-
π Encapsulation
- Wrapping data and code together as a single unit
- Access modifiers: public, protected, private
- https://github.com/samade747/OOP-PRO/tree/main/OfficalRepo/Encapsulation
-
π Abstraction
- Hiding internal implementation and showing only necessary details
- https://github.com/samade747/OOP-PRO/tree/main/OfficalRepo/Abstraction
-
πͺ Inheritance
-
Acquiring properties and behaviors from a parent class
-
https://github.com/samade747/OOP-PRO/blob/main/OfficalRepo/Inheritance/README.md
-
-
π Polymorphism
- Multiple forms: method overloading and method overriding
- https://github.com/samade747/OOP-PRO/tree/main/OfficalRepo/Polymorphism
-
βοΈ OOP vs Procedural Programming
- Key differences and use cases
-
π§± Basics of Classes and Objects
- π€ Classes: Blueprints for creating objects
- π§© Objects: Instances of classes
-
π οΈ Attributes and Methods
- Instance variables
- Class variables
- Instance methods
-
ποΈ Constructors
__init__method to initialize objects
-
𧨠Destructors
__del__method to clean up when an object is deleted
-
π Class Attributes vs Instance Attributes
- Shared vs unique data among instances
-
π·οΈ @classmethod
- Methods that take the class as the first argument
-
π§· @staticmethod
- Methods that donβt take instance or class as a parameter
-
π€ @instancemethod
- Regular methods that operate on instance data
This repository is helpful for:
- Viva preparation
- Technical interview revision
- Deep understanding of Python OOP concepts
This project is open-source and available under the MIT License.