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.


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

🚀 Desbloqueie a explicação completa

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

Criar conta grátis
  • Mountebanking Cormorant
    Mountebanking Cormorant
    07/08/2022 • 12:22
    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
publicidade
🍪

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