language agnostic - What is this pattern called (helps avoid type casting)? -


This is the official definition of a pattern that is trying to find a link that I believe I saw in Go4 But no one seems to find it anywhere.

  class processor {processpimeter (abstrautermeter X) {x process (this); } ProcessParameter (ParameterA x) {... A-Specific Argument ...} ProcessParameter (Parameter Bx) {... B-Specific Argument ...}} Abstract Class AbstractParameter {Abstract Zero Process (Processor P); } Class parameter A: Sarpampeter {Override zero process (Processor P) {P. Processpermiter (this); }} Class parameter B: Sarpampeter {Override zero process (Processor P) {p. Processpermiter (this); }}  

This is The technique is called "double dispatch".


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -