Method overloading and overriding cause encapsulation flaw - Archive ouverte HAL Accéder directement au contenu
Communication Dans Un Congrès Année : 2006

Method overloading and overriding cause encapsulation flaw

Antoine Beugnard

Résumé

Based on an experiment using three languages under .NET, this paper argues that the semantic differences between these languages regarding method overloading and overriding give rise to significant complexity and break encapsulation. We first recalls the various interpretations of overriding and overloading in object oriented languages through what we call language signatures. Then, we realize an experimentation with .NET components coded in different Programming languages in order to observe the global behavior. From this, we show that overriding and overloading are not compatible with a key property of components: encapsulation. We conclude that, in the current state of the art, in order to build predictable assembly, components must expose their internal structure! We propose a solution to this problem.
Fichier principal
Vignette du fichier
oops-112.pdf (428.84 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-02166903 , version 1 (27-06-2019)

Identifiants

  • HAL Id : hal-02166903 , version 1

Citer

Antoine Beugnard. Method overloading and overriding cause encapsulation flaw. Object-Oriented Programming Languages ans Systems (OOPS), 21st ACM Symposium On Applied Computing (SAC), Apr 2006, Dijon, France. pp.1424 - 1428. ⟨hal-02166903⟩
141 Consultations
104 Téléchargements

Partager

Gmail Facebook X LinkedIn More