Changed improper description about double dispatch in FAQ section

This commit is contained in:
Narendra Pathai 2015-07-29 16:50:36 +05:30
parent 3adffb62da
commit 88c2e7dacd

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