Classes


  1. Create a class
  2. Import module containing class
  3. Import class from module
  4. Create Point class
  5. Initialize a class - constructor, attributes
  6. Methods
  7. Stringify class
  8. Inheritance
  9. Inheritance - another level
  10. Inheritance - super
  11. Inheritance - super - other class
  12. Modes of method inheritance
  13. Modes of method inheritance - implicit
  14. Modes of method inheritance - override
  15. Modes of method inheritance - extend
  16. Modes of method inheritance - delegate - provide
  17. Composition - Line
  18. Some comments
  19. Getting the class name of an oject
  20. Class in function
  21. Iterators
  22. Unbound iterator
  23. Exercise: Polygon
  24. Solution - Polygon
  25. Exercise: Number
  26. Exercise: iterators
  27. Exercise: iterators (2)
  28. Exercise: read char
  29. Solution: iterators
  30. Solution: iterators (2)
  31. Exercise: Library
  32. Exercise: Bookexchange
  33. Exercise: Represent turtle graphics