Merge pull request #178 from npathai/master

Changed improper description about double dispatch in FAQ section
This commit is contained in:
Ilkka Seppälä 2015-07-29 21:13:27 +03:00
commit 2aa9681b91

View File

@ -736,7 +736,7 @@ While the implementations look similar there are differences. The Chain of Respo
**<a id="Q5">Q: What is the difference between Visitor and Double Dispatch patterns?</a>**
The Visitor pattern is a means of adding a new operation to existing classes. Double dispatch is a means of dispatching function calls with respect to two polymorphic types, rather than a single polymorphic type, which is what languages like C++ and Java support directly.
The Visitor pattern is a means of adding a new operation to existing classes. Double dispatch is a means of dispatching function calls with respect to two polymorphic types, rather than a single polymorphic type, which is what languages like C++ and Java _do not_ support directly.
**<a id="Q6">Q: What are the differences between Flyweight and Object Pool patterns?</a>**