Skoči na glavni sadržaj

Izvorni znanstveni članak

https://doi.org/10.2498/cit.1001812

Java Method Calls in the Hierarchy – Uncovering Yet another Inheritance Foible

Emal Nasseri ; Department of Information Systems and Computing, Brunel University, UK
Steve Counsell ; Department of Information Systems and Computing, Brunel University, UK


Puni tekst: engleski pdf 164 Kb

str. 159-165

preuzimanja: 678

citiraj


Sažetak

This paper describes an empirical investigation into method calls between classes at each level of the inheritance hierarchy in four, Java, open source systems. We distinguish between method calls made to super classes in the hierarchy and external method calls made outside the line of super classes to the root. The premise on which the research rests is that classes should predominantly make use of super class functionality (as theory suggests) and relatively infrequent use of functionality outside those super classes. Results revealed that the most method calls were made to the methods of the classes where the majority of functionality resided (at shallow hierarchical levels) and not necessarily to the super classes of a class. The evidence presented therefore implies that developers are not using inheritance in the spirit originally intended and lends weight to the growing belief that OO inheritance has more practical foibles than theoretically stated advantages.  

Ključne riječi

Method calls; inheritance; OO; empirical

Hrčak ID:

59525

URI

https://hrcak.srce.hr/59525

Datum izdavanja:

30.6.2010.

Posjeta: 1.446 *