Parcours d'apprentissage

POO et design patterns en Python

Classes et objets, puis les patrons de création, de structure et de comportement utilisés dans du vrai code Python.

14 leçons · 14 défis

Commencer le parcours →

1 Classes et objets 2 leçons

  1. Leçon 1 défi Classes et objets en Python Définir un type avec état et comportement.
  2. Leçon 1 défi Programmation orientée objet en Python Apprenez encapsulation, héritage, redéfinition et polymorphisme avec un exemple exécutable.

2 Patrons de création 3 leçons

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

3 Patrons de structure 4 leçons

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

4 Patrons de comportement 5 leçons

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