Question OOP-POLY-0070
HardWhat is double dispatch, and which pattern implements it?
- A.
Overloading; the Factory pattern
- B.
Choosing behaviour based on the run-time types of two objects; the Visitor pattern
- C.
Calling a method twice; the Singleton pattern
- D.
Static binding; the Builder pattern
Sign up free to see the answer and a step-by-step explanation.