Combining subsumption and binary methods: An object calculus with views

Authors
Citation
J. Vouillon, Combining subsumption and binary methods: An object calculus with views, ACM SIGPL N, 36(3), 2001, pp. 290-303
Citations number
21
Categorie Soggetti
Computer Science & Engineering
Journal title
ACM SIGPLAN NOTICES
ISSN journal
15232867 → ACNP
Volume
36
Issue
3
Year of publication
2001
Pages
290 - 303
Database
ISI
SICI code
1523-2867(200103)36:3<290:CSABMA>2.0.ZU;2-X
Abstract
We present an object-oriented calculus which allows arbitrary hiding of met hods in prototypes, even in the presence of binary methods and friend funct ions. This combination of features permits complete control of the interfac e a class exposes to the remainder of a program (which is of key importance for program readability, security and ease of maintenance), while still al lowing complex interactions with other classes belonging to the same module or software component. This result is made possible by the use of views. A view is a name that spe cifies an interface to an object. A set of views is attached to each object and a method can be invoked either directly or via a view of the object.