Classes - OOP - Object Oriented Programming

  1. Why Object Oriented Programming?
  2. Generic Object Oriented Programming terms
  3. OOP in Python
  4. OOP in Python (numbers, strings, lists)
  5. OOP in Python (argparse)
  6. Create a class
  7. Create instance of class
  8. Import module containing class
  9. Import class from module
  10. Initialize instance (not a constructor)
  11. Self is the instance
  12. Init uses same name as attribute and getters
  13. Initialize an instance - (not a constructor), attributes and getters
  14. Setters - assign to the attributes
  15. Attributes are not special
  16. Private attributes
  17. Secret attributes
  18. Methods
  19. Inheritance
  20. Inheritance - another level
  21. Modes of method inheritance
  22. Modes of method inheritance - implicit
  23. Modes of method inheritance - override
  24. Modes of method inheritance - extend
  25. Modes of method inheritance - delegate - provide
  26. Composition - Line
  27. Some comments
  28. Exercise: Add move_rad to based on radians
  29. Exercise: Improve previous examples
  30. Exercise: Polygon
  31. Exercise: Number
  32. Exercise: Library
  33. Exercise: Bookexchange
  34. Exercise: Represent turtle graphics
  35. Solution - Polygon