CLASS ENCAPSULATION AND OBJECT ENCAPSULATION - An Empirical Study

Janina Voigt, Warwick Irwin, Neville Churcher

2010

Abstract

Two schools of thought underpin the way OO programming languages support encapsulation. Ob¬ject encap-sulation ensures that private members are accessible only within a single object. Class encapsulation allows private members to be accessed by other objects of the same class. This paper describes an empirical inves-tigation into the way encapsulation is used in practice in class encapsulation languages C# and Java. We find arbitrary and inconsistent programming practices and suggest that object en¬capsula¬tion is more intuitive and provides OO design advantages.

Download


Paper Citation


in Harvard Style

Voigt J., Irwin W. and Churcher N. (2010). CLASS ENCAPSULATION AND OBJECT ENCAPSULATION - An Empirical Study . In Proceedings of the Fifth International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE, ISBN 978-989-8425-21-8, pages 171-178. DOI: 10.5220/0002924701710178

in Bibtex Style

@conference{enase10,
author={Janina Voigt and Warwick Irwin and Neville Churcher},
title={CLASS ENCAPSULATION AND OBJECT ENCAPSULATION - An Empirical Study},
booktitle={Proceedings of the Fifth International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,},
year={2010},
pages={171-178},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0002924701710178},
isbn={978-989-8425-21-8},
}


in EndNote Style

TY - CONF
JO - Proceedings of the Fifth International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,
TI - CLASS ENCAPSULATION AND OBJECT ENCAPSULATION - An Empirical Study
SN - 978-989-8425-21-8
AU - Voigt J.
AU - Irwin W.
AU - Churcher N.
PY - 2010
SP - 171
EP - 178
DO - 10.5220/0002924701710178