Python OOP
This folder has no README. Everything inside it is listed below.
Notes
- Magic Methods and Attributes in Python 4 Python provides special methods (called magic methods or dunder methods) that customize the behavior of objects.
- Classes in Python 4 A Python class is not a blueprint compiled ahead of time; it is an object built at runtime by executing a block of code, and everything an interviewer asks…
- Objects in Python 4 An object is an instance of a class. It's a concrete entity that has state (attributes) and behavior (methods).
- Polymorphism in Python 4 Polymorphism is one of the four fundamental principles of Object-Oriented Programming (OOP).
- Encapsulation in Python 4 Encapsulation is one of the four fundamental principles of Object-Oriented Programming (OOP).
- Inheritance in Python 4 Inheritance is one of the four fundamental principles of Object-Oriented Programming (OOP).
- Data Abstraction in Python 4 Data Abstraction is one of the four fundamental principles of Object-Oriented Programming (OOP).
- Descriptors 6 An object that defines __get__, __set__ or __delete__ and is assigned as a class attribute.
- Interfaces in Python: duck typing, ABCs and Protocols 4 Python has no interface keyword, and the interview question underneath "how do you define an interface?" is whether you know the three mechanisms it has…
- Metaclasses — Production Patterns 6 A class is an instance of a metaclass (type by default).