Julija Petrič (2017) Multiple dispatch in Java. EngD thesis.
Abstract
In this thesis we talk about dispatch mechanisms. Object oriented programming languages are divided into two main categories: programming languages that supports single dispatch and programming languages that supports multiple dispatch. In single dispatch languages the method to be executed is selected by the dynamic type of the receiver object and static types of method parameters. However, single dispatch has several limitations. Consequently, a growing number of programming languages enables a multiple dispatch, where the method to be executed is selected by the dynamic type of all arguments of method call. Here, different multiple dispatch simulation techniques in java programming language, which otherwise supports only single dispatch, are discussed. We performed simple test programs to evalue the runtime of each individual technique.
Actions (login required)