Percorso di apprendimento

OOP e design pattern in Python

Classi e oggetti, poi i pattern creazionali, strutturali e comportamentali usati nel vero codice Python.

14 lezioni · 14 sfide

Inizia il percorso →

1 Classi e oggetti 2 lezioni

  1. Lezione 1 sfida Classi e oggetti in Python Definisci un tipo con stato e comportamento.
  2. Lezione 1 sfida Programmazione orientata agli oggetti in Python Impara incapsulamento, ereditarietà, override e polimorfismo con un esempio eseguibile.

2 Pattern creazionali 3 lezioni

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

3 Pattern strutturali 4 lezioni

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

4 Pattern comportamentali 5 lezioni

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