Sign in
Reconciling Encapsulation and Dynamic Dispatch via Accessory Functions
Technical documentation   Open access

Reconciling Encapsulation and Dynamic Dispatch via Accessory Functions

C. Benjamin Flynn and David Wonnacott
Rutgers University
1999
DOI:
https://doi.org/10.7282/T3S46WK8

Abstract

Many object-oriented languages allow encapsulation of data. We identify a conflict between data encapsulation and dynamic dispatch, and propose that it be resolved via the addition of ``accessory functions''. We discuss the implementation of accessory functions for C++, and show that this system extends naturally to allow multiple dispatch in C++.
pdf
dcs-tr-387198.77 kBDownloadView
Technical Documentation Open Access

Metrics

70 File downloads
25 Record Views

Details