Practical use of encapsulation in object-oriented programming
2003 (English)In: SERP'03: PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING RESEARCH AND PRACTICE, VOLS 1 AND 2, ATHENS: C S R E A PRESS , 2003, 554-560 p.Conference paper (Refereed)
Even though an OO program may have a high degree of encapsulation it is still sometimes possible to modify the inner representation of compound objects. In for example Java there is little to prevent references exported from a compound object to be used by its receivers. Thus it may be possible to change the states of inner objects of a compound object from the outside leading to invariants may be broken. This is often referred to as the representation exposure problem and many solutions to this problem have been proposed. There is, however, a lack of empirical evidence that this is actually a practical problem in the software industry. In this paper we report our findings from interviews conducted among software engineers on their view on encapsulation and information hiding issues, representation exposure, their we of OO programming languages, their way of working and their opinions on tools and techniques supporting encapsulation, information hiding and representation exposure.
Place, publisher, year, edition, pages
ATHENS: C S R E A PRESS , 2003. 554-560 p.
IdentifiersURN: urn:nbn:se:kth:diva-29019ISI: 000187617100085OAI: oai:DiVA.org:kth-29019DiVA: diva2:394763
International Conference on Software Engineering Research and Practice LAS VEGAS, NV, JUN 23-26, 2003
QC 201102032011-02-032011-01-252011-08-31Bibliographically approved