Class Encapsulation and Object Encapsulation: An Empirical Study (2010)
Type of ContentConference Contributions - Published
PublisherUniversity of Canterbury. Computer Science and Software Engineering
Two schools of thought underpin the way OO programming languages support encapsulation. Object encapsulation 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 investigation 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 encapsulation is more intuitive and provides OO design advantages.
CitationVoigt, J., Irwin, W., Churcher, N. (2010) Class Encapsulation and Object Encapsulation: An Empirical Study. Athens, Greece: ENASE2010: 5th International Conference Evaluation of Novel Approaches to Software Engineering, 22-24 Jul 2010. 171-178.
This citation is automatically generated and may be unreliable. Use as a guide only.
KeywordsOO design; information hiding; Encapsulation; encapsulation boundary
ANZSRC Fields of Research08 - Information and Computing Sciences
Showing items related by title, author, creator and subject.
WHICH VISUALISATION TOOLS AND WHY? COMPARING PERCEPTIONS OF STUDENT AND PRACTICING DESIGNERS TOWARD DIGITAL SKETCHING Ranscombe C; Bissett-Johnson K; Zhang W; Eisenbart B; Lauff C (The Design Society, 2020)Different design tools offer a variety of different benefits to designers at different stages in the design process. Yet, as digital design tools develop, providing more nuanced utility, we observe a challenge for design ...
evmix: An R package for Extreme Value Mixture Modeling, Threshold Estimation and Boundary Corrected Kernel Density Estimation Hu Y; Scarrott C (2018)evmix is an R package (R Core Team 2017) with two interlinked toolsets: i) for extreme value modeling and ii) kernel density estimation. A key issue in univariate extreme value modeling is the choice of threshold beyond ...
McKenzie, Grant; Adams, Ben (Schloss Dagstuhl -- Leibniz-Zentrum fur Informatik, 2017)Typical approaches to defining regions, districts or neighborhoods within a city often focus on place instances of a similar type that are grouped together. For example, most cities have at least one bar district defined ...