Considerando os padrões definidos pelo GoF (Gang of Four), assinale a opção c...

Considerando os padrões definidos pelo GoF (Gang of Four), assinale a opção correta.


Considerando os padrões definidos pelo GoF (Gang of Four), assinale a opção correta.

🚀 Desbloqueie a explicação completa

Veja comentários detalhados e resoluções exclusivas para entender o gabarito desta questão.

  • Mountebanking Cormorant
    Mountebanking Cormorant
    31/12/1969 • 21:00
    a-
    In object-oriented design, the chain-of-responsibility pattern is a behavioral design pattern consisting of a source of command objects and a series of processing objects. Each processing object contains logic that defines the types of command objects that it can handle; the rest are passed to the next processing object in the chain. A mechanism also exists for adding new processing objects to the end of this chain. This pattern promotes the idea of loose coupling.
    The chain-of-responsibility pattern is structurally nearly identical to the decorator pattern, the difference being that for the decorator, all classes handle the request, while for the chain of responsibility, exactly one of the classes in the chain handles the request.

    https://en.wikipedia.org/wiki/Chain-of-responsibility_pattern
🔒
Conteúdo restrito

Cadastre-se para visualizar comentários e resoluções.

Criar conta grátis

Utilizamos cookies e tecnologias semelhantes para aprimorar sua experiência. Política de Privacidade.