Content deleted Content added
AndreAdrian (talk | contribs) →Example: add C++11 version implementation of sample code |
AndreAdrian (talk | contribs) |
||
Line 47:
== Examples ==
<!-- Wikipedia is not a list of examples. Do not add examples from your favorite programming language here; this page exists to explain the design pattern, not to show how it interacts with subtleties of every language under the sun. Feel free to add examples here: http://en.wikibooks.org/wiki/Computer_Science_Design_Patterns/Chain_of_responsibility -->
{{wikibooks|Computer Science Design Patterns|Chain of responsibility|Chain-of-responsibility implementations in various languages}}▼
=== C++ example ===
Line 157 ⟶ 155:
=== Java example ===
▲{{wikibooks|Computer Science Design Patterns|Chain of responsibility|Chain-of-responsibility implementations in various languages}}
Below is an example of this pattern in Java.
A logger is created using a chain of loggers, each one configured with different log levels.
|