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. Import module containing class
  8. Import class from module
  9. Initialize a class - constructor, attributes
  10. Attributes are not special
  11. Create Point class
  12. Initialize a class - constructor, attributes
  13. Methods
  14. Stringify class
  15. Inheritance
  16. Inheritance - another level
  17. Modes of method inheritance
  18. Modes of method inheritance - implicit
  19. Modes of method inheritance - override
  20. Modes of method inheritance - extend
  21. Modes of method inheritance - delegate - provide
  22. Composition - Line
  23. Some comments
  24. Class in function
  25. Serialization of instances with pickle
  26. Quick Class definition and usage
  27. Exercise: Add move_rad to based on radians
  28. Exercise: Improve previous examples
  29. Exercise: Polygon
  30. Exercise: Number
  31. Exercise: Library
  32. Exercise: Bookexchange
  33. Exercise: Represent turtle graphics
  34. Solution - Polygon