Python のオブジェクト指向とデザインパターン
クラスとオブジェクトから、実際の Python コードで使われる生成・構造・振る舞いのパターンまで。
パスを始める →1 クラスとオブジェクト レッスン 2 件
- レッスン チャレンジ 1 件 Pythonのクラスとオブジェクト 状態と振る舞いを持つ独自型を定義します。
- レッスン チャレンジ 1 件 Pythonのオブジェクト指向プログラミング 実行可能な例でカプセル化、継承、オーバーライド、ポリモーフィズムを学びます。
2 生成に関するパターン レッスン 3 件
- レッスン チャレンジ 1 件 Singleton Pattern in Python Ensure a class has one shared instance and provide a global access point.
- レッスン チャレンジ 1 件 Factory Method Pattern in Python Let subclasses or a factory method choose which concrete object to create.
- レッスン チャレンジ 1 件 Builder Pattern in Python Construct a complex object through clear, incremental steps.
3 構造に関するパターン レッスン 4 件
- レッスン チャレンジ 1 件 Adapter Pattern in Python Convert an existing interface into the interface a client expects.
- レッスン チャレンジ 1 件 Decorator Pattern in Python Add behavior to an object dynamically without changing its class.
- レッスン チャレンジ 1 件 Facade Pattern in Python Provide one simple interface to a complex subsystem.
- レッスン チャレンジ 1 件 Composite Pattern in Python Treat individual objects and object groups through the same interface.
4 振る舞いに関するパターン レッスン 5 件
- レッスン チャレンジ 1 件 Observer Pattern in Python Notify subscribed objects automatically when subject state changes.
- レッスン チャレンジ 1 件 Strategy Pattern in Python Select an interchangeable algorithm at runtime.
- レッスン チャレンジ 1 件 Command Pattern in Python Represent a request as an object that can be queued, logged, or undone.
- レッスン チャレンジ 1 件 State Pattern in Python Change an object's behavior when its internal state changes.
- レッスン チャレンジ 1 件 Iterator Pattern in Python Traverse a collection without exposing its internal representation.