Trilha de aprendizado

POO e padrões de projeto em Python

Classes e objetos, depois os padrões criacionais, estruturais e comportamentais usados em código Python real.

14 lições · 14 desafios

Começar a trilha →

1 Classes e objetos 2 lições

  1. Lição 1 desafio Classes e objetos em Python Defina um tipo com estado e comportamento.
  2. Lição 1 desafio Programação orientada a objetos em Python Aprenda encapsulamento, herança, sobrescrita e polimorfismo com um exemplo executável.

2 Padrões criacionais 3 lições

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

3 Padrões estruturais 4 lições

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

4 Padrões comportamentais 5 lições

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