Logo

Programming Linux

Quick search

Navigation

Courses

  • Courses Overview
  • Slide Material
    • Linux
    • Python Programming
      • Python: The Language Fundamentals
      • Python: More Language Features
        • Comprehensions (List, Dictionary, Set)
        • Exception Handling
        • Iterating Intelligently: Generators, and the Iterator Protocol
        • Positional and Keyword Arguments
        • Closures
        • Decorators
        • Context Managers: The with Statement
        • The exec() Function
        • Object Oriented Programming
          • Classes And Dictionaries
          • Constructor
          • Methods
          • str() And repr()
          • Properties
          • collections.namedtuple
          • Inheritance
          • Operator Overloading
          • Abstract Base Classes (abc), And Duck Typing
        • Modules and Packages
        • Multithreading
      • Python: Project/Package Management
      • Python: Miscellaneous Topics
      • Python: Draft Topics
      • Python Links
      • Exercises
    • The C Programming Language
    • C++: TODO List
    • C++: Miscellaneous Live-Hacking
    • C++
    • The New C++ (11-…)
    • Design Patterns With C++
    • C++ Code
    • C++ Exercises
    • CMake
    • Is Software A Craft? Software Is A Craft! ⟶ Clean Code
    • Unit Testing With googletest
  • How To Book
  • Log Of Past Courses

About

  • Myself: Contact, Impressum, …
  • This Site

Blog

  • Posts

Object Oriented Programming¶

  • Topics

  • Exercises

Topics¶

  • Classes And Dictionaries
  • Constructor
  • Methods
  • str() And repr()
  • Properties
  • collections.namedtuple
  • Inheritance
  • Operator Overloading
  • Abstract Base Classes (abc), And Duck Typing

Exercises¶

  • Without OO (leading up to here)

    • Exercise: Read CSV File (csv.reader)

    • Exercise: Read CSV File (csv.dictreader)

    • Exercise: Refactoring - Extract CSV Reading Into Function (csv.reader)

    • Exercise: Refactoring - Extract CSV Reading Into Function (csv.dictreader)

    • Exercise: Refactoring - Extract Both CSV Formats Into Module

    • Exercise: Convert User Record To JSON And Back

    • Exercise: MQTT: Publish User Records

  • Belonging here

    • Exercise: Away From Raw Dictionaries

©2019-2025 (GPLv3), Jörg Faschingbauer. | Page source