Double Dispatch
Everything on SkillVeris tagged Double Dispatch — collected across the glossary, study notes, blog, and cheat sheets.
5 resources across 1 library
Interview Questions(5)
What is the Visitor Pattern?
The Visitor pattern is a behavioral design pattern that lets you add new operations over a fixed set of related classes without modifying those classes, by mov…
What is Multiple Dispatch?
Multiple dispatch is a form of polymorphism in which the specific method implementation invoked is chosen at runtime based on the runtime types of more than on…
Single Dispatch vs Multiple Dispatch
Single dispatch selects which method implementation to run based on the runtime type of only the receiver object the method is called on, while multiple dispat…
What is Double Dispatch in OOP?
Double dispatch is a technique where the method that executes is selected based on the runtime types of TWO objects involved in a call, not just one, achieved…
How Does the Visitor Pattern Use Double Dispatch?
The Visitor pattern lets you add new operations over a fixed class hierarchy without modifying the hierarchy itself, by defining an accept(Visitor) method on e…