学習パス

Python のオブジェクト指向とデザインパターン

クラスとオブジェクトから、実際の Python コードで使われる生成・構造・振る舞いのパターンまで。

レッスン 14 件 · チャレンジ 14 件

パスを始める →

1 クラスとオブジェクト レッスン 2 件

  1. レッスン チャレンジ 1 件 Pythonのクラスとオブジェクト 状態と振る舞いを持つ独自型を定義します。
  2. レッスン チャレンジ 1 件 Pythonのオブジェクト指向プログラミング 実行可能な例でカプセル化、継承、オーバーライド、ポリモーフィズムを学びます。

2 生成に関するパターン レッスン 3 件

  1. レッスン チャレンジ 1 件 Singleton Pattern in Python Ensure a class has one shared instance and provide a global access point.
  2. レッスン チャレンジ 1 件 Factory Method Pattern in Python Let subclasses or a factory method choose which concrete object to create.
  3. レッスン チャレンジ 1 件 Builder Pattern in Python Construct a complex object through clear, incremental steps.

3 構造に関するパターン レッスン 4 件

  1. レッスン チャレンジ 1 件 Adapter Pattern in Python Convert an existing interface into the interface a client expects.
  2. レッスン チャレンジ 1 件 Decorator Pattern in Python Add behavior to an object dynamically without changing its class.
  3. レッスン チャレンジ 1 件 Facade Pattern in Python Provide one simple interface to a complex subsystem.
  4. レッスン チャレンジ 1 件 Composite Pattern in Python Treat individual objects and object groups through the same interface.

4 振る舞いに関するパターン レッスン 5 件

  1. レッスン チャレンジ 1 件 Observer Pattern in Python Notify subscribed objects automatically when subject state changes.
  2. レッスン チャレンジ 1 件 Strategy Pattern in Python Select an interchangeable algorithm at runtime.
  3. レッスン チャレンジ 1 件 Command Pattern in Python Represent a request as an object that can be queued, logged, or undone.
  4. レッスン チャレンジ 1 件 State Pattern in Python Change an object's behavior when its internal state changes.
  5. レッスン チャレンジ 1 件 Iterator Pattern in Python Traverse a collection without exposing its internal representation.