Book Chapter10.4018/978-1-60566-026-4.CH321
Inheritance in Programming Languages
Krishnaprasad Thirunarayan
- 01 Jan 2009
- pp 2042-2047
TL;DR: This paper presents various design choices for incorporating inheritance into programming languages from an application programmer’s perspective, and compares and contrast method inheritance, interaction of type system with method binding, constructs for method redefinition, and their implementation in widely used languages to illustrate subtle issues of interest to programmers.
read more
Abstract: Inheritance is a powerful concept employed in computer science, especially in artificial intelligence (AI), object-oriented programming (OOP), and object-oriented databases (OODB). In the field of AI, inheritance has been primarily used as a concise and effective means of representing and reasoning with common-sense knowledge (Thirunarayan, 1995). In programming languages and databases, inheritance has been used for the purpose of sharing data and methods, and for enabling modularity of software (re)use and maintenance (Lakshmanan & Thirunarayan, 1998). In this paper, we present various design choices for incorporating inheritance into programming languages from an application programmer’s perspective. In contrast with the language of mathematics which is mature and wellunderstood, the embodiment of object-oriented concepts and constructs in a concrete programming language is neither fixed nor universally accepted. We exhibit programs with similar syntax in different languages that have very different semantics, and different looking programs that are equivalent. We compare and contrast method inheritance, interaction of type system with method binding, constructs for method redefinition, and their implementation in widely used languages such as C++ (Stroustrup, 1997), Java (Arnold et al, 2005), and C# (Hejlsberg et al, 2006), to illustrate subtle issues of interest to programmers. Finally, we discuss multiple inheritance briefly.
read more
Chat with Paper
AI Agents for this Paper
Find similar papers on Google Scholar, PubMed and Arxiv
Write a critical review of this paper
Analyze citations of this paper to find unaddressed research gaps
Citations
A Novel Approach to Find Reusability using Coupling and Cohesion Metrics
Annushri Sethi,Ritu Tandon +1 more
TL;DR: This research sets out to research whether brotherly love is correlated with changeability, and concludes that cohesion metrics inclusive of LCC and LCOM ought to not be used as changeability indicators.
3
A Comparative Approach of Cohesion and Coupling for Reducing Complexity
Vinay Mishra,Rahul Bakshi +1 more
TL;DR: Cohesion Metrics tight class Cohesion and Loose Class Cohesion are placed on the programs to calculate the cohesion value and compare the result and on the basis of result a distinction is made between complexities of inheritance and interface.
•Journal Article
Analysis of Cohesion and Coupling Metrics for Object Oriented System
TL;DR: Studies have been done to identify complexity between inheritance and interface by applying the cohesion and coupling metrics to prove which concept is good and beneficial for c# developer to use.
References
•Book
The C++ Programming Language
Bjarne Stroustrup
- 01 Jan 1985
TL;DR: Bjarne Stroustrup makes C even more accessible to those new to the language, while adding advanced information and techniques that even expert C programmers will find invaluable.
8.1K
•Book
The Java Language Specification
James Gosling,Bill Joy,Guy L. Steele +2 more
- 12 Sep 1996
TL;DR: The Java Language Specification, Second Edition is the definitive technical reference for the Java programming language and provides complete, accurate, and detailed coverage of the syntax and semantics of the Java language.
•Book
Encyclopedia of Information Science and Technology
Mehdi Khosrow-Pour
- 01 Jan 2005
TL;DR: This five-volume encyclopedia includes more than 550 articles highlighting current concepts, issues and emerging technologies that can be accessed by scholars, students, and researchers in the field of information science and technology.
991
Related Papers (5)
William R. Cook,Walter L. Hill,Peter S. Canning +2 more
- 01 Dec 1989
Gary T. Leavens
- 01 Jan 1993
Glen Jeffrey Ditchfield
- 01 Jan 1992