Flynn, C. Benjamin & Wonnacott, David. Reconciling Encapsulation and Dynamic Dispatch via Accessory Functions. Retrieved from https://doi.org/doi:10.7282/T3S46WK8
AbstractMany 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++.
RightsThis Item is protected by copyright and/or related rights.You are free to use this Item in any way that is permitted by the copyright and related rights legislation that applies to your use.For other uses you need to obtain permission from the rights-holder(s).