Skip to content
Free planNo credit card requiredStart writing

article · 2007

Parameterized Inheritance vs. Multiple Inheritance

Amit Patel, Vitaly Shmatikov, John Mitchell

Cited by 0Abstract and details only

Abstract

In this paper, we demonstrate that multiple inheritance can be expressed as a combination of single inheritance, parameterization, and interface subtyping. We propose a language construct called "phunctor" as an alternative to multiple inheritance. Phunctors combine single inheritance and constrained parameterization to provide required functionality in the contexts where multiple inheritance is used, while retaining the benefits of static type checking. We argue that using parameterized inheritance instead of multiple inheritance leads to more robust class hierarchy designs. We discuss how phunctors can be implemented efficiently and show that phunctors facilitate several common design patterns.

Cite this paper

APA 7

Patel, A., Shmatikov, V., & Mitchell, J. (2007). Parameterized Inheritance vs. Multiple Inheritance.

MLA 9

Patel, Amit, et al. “Parameterized Inheritance vs. Multiple Inheritance.” 2007.

Chicago

Patel, Amit, Vitaly Shmatikov, and John Mitchell. 2007. “Parameterized Inheritance vs. Multiple Inheritance.”

Harvard

Patel, A., Shmatikov, V. and Mitchell, J. (2007) ‘Parameterized Inheritance vs. Multiple Inheritance’.

BibTeX
@article{patel2007parameterized,
  title = {{Parameterized Inheritance vs. Multiple Inheritance}},
  author = {Patel, Amit and Shmatikov, Vitaly and Mitchell, John},
  year = {2007}
}

Made from the index record. Check names, capitalisation and page numbers against the paper. Need another style? AI for Research has over 10,000.