❮ links
❯
Advanced OOP
- Class count instances
- Class Attributes
- Class Attributes in Instances
- Attributes with method access
- Instance Attribute
- Methods are class attributes
- Monkey patching
- Classes: instance method
- Class methods and class attributes
- Classes: constructor
- Class methods - alternative constructor
- Abstract Base Class
- Abstract Base Class with abc
- ABC working example
- ABC - cannot instantiate the base-class
- ABC - must implement methods
- Use Python @propery to fix bad interface (the bad interface)
- Use Python @propery to fix bad interface (first attempt)
- Use Python @propery to fix bad API
- Use Python @propery decorator to fix bad API
- Use Python @propery for value validation
- class and static methods
- Destructor: __del__
- Destructor delayed
- Destructor delayed for both
- Opearator overloading
- Operator overloading methods
- Exercise: rectangle
- Exercise: SNMP numbers
- Exercise: Implement a Gene inheritance model combining DNA
- Exercise: imaginary numbers - complex numbers
- Solution: Rectangle
- Solution: Implement a Gene inheritance model combining DNA
- Instance counter