Merge branch 'master' of https://github.com/iluwatar/java-design-patterns into HalfSyncHalfAsync

This commit is contained in:
Narendra Pathai 2015-07-30 10:50:00 +05:30
commit 1a1e429eda

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>**