Next Article in Journal
Effects of Short-Rest Interval Time on Resisted Sprint Performance and Sprint Mechanical Variables in Elite Youth Soccer Players
Previous Article in Journal
Microbial Biopolymers: From Production to Environmental Applications—A Review
Previous Article in Special Issue
Adaptive Test Suits Generation for Self-Adaptive Systems Using SPEA2 Algorithm
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

Puzzle Pattern, a Systematic Approach to Multiple Behavioral Inheritance Implementation in Object-Oriented Programming

by
Francesca Fallucchi
1,2,*,† and
Manuel Gozzi
1,†
1
Department of Engineering Sciences, Guglielmo Marconi University, 00193 Roma, Italy
2
Leibniz Institute for Educational Media, Georg Eckert Institute, Freisestraße 1, 38118 Braunschweig, Germany
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Appl. Sci. 2024, 14(12), 5083; https://doi.org/10.3390/app14125083
Submission received: 30 April 2024 / Revised: 29 May 2024 / Accepted: 10 June 2024 / Published: 11 June 2024
(This article belongs to the Collection Software Engineering: Computer Science and System)

Featured Application

This software design pattern can be used in OOP programming in order to promote conceptual clarity, reduce coupling, and facilitate system scalability.

Abstract

Object-oriented programming (OOP) has long been a dominant paradigm in software development, but it is not without its challenges. One major issue is the problem of tight coupling between objects, which can hinder flexibility and make it difficult to modify or extend code. Additionally, the complexity of managing inheritance hierarchies can lead to rigid and fragile designs, making it hard to maintain and evolve the software over time. This paper introduces a software development pattern that seeks to offer a renewed approach to writing code in object-oriented (OO) environments. Addressing some of the limitations of the traditional approach, the Puzzle Pattern focuses on extreme modularity, favoring writing code exclusively in building blocks that do not possess a state (e.g., Java interfaces that support concrete methods definitions in interfaces starting from version 8). Concrete classes are subsequently assembled through the implementation of those interfaces, reducing coupling and introducing a new level of flexibility and adaptability in software construction. The highlighted pattern offers significant benefits in software development, promoting extreme modularity through interface-based coding, enhancing adaptability via multiple inheritance, and upholding the SOLID principles, though it may pose challenges such as complexity and a learning curve for teams.
Keywords: software engineering; software pattern; object oriented programming software engineering; software pattern; object oriented programming

Share and Cite

MDPI and ACS Style

Fallucchi, F.; Gozzi, M. Puzzle Pattern, a Systematic Approach to Multiple Behavioral Inheritance Implementation in Object-Oriented Programming. Appl. Sci. 2024, 14, 5083. https://doi.org/10.3390/app14125083

AMA Style

Fallucchi F, Gozzi M. Puzzle Pattern, a Systematic Approach to Multiple Behavioral Inheritance Implementation in Object-Oriented Programming. Applied Sciences. 2024; 14(12):5083. https://doi.org/10.3390/app14125083

Chicago/Turabian Style

Fallucchi, Francesca, and Manuel Gozzi. 2024. "Puzzle Pattern, a Systematic Approach to Multiple Behavioral Inheritance Implementation in Object-Oriented Programming" Applied Sciences 14, no. 12: 5083. https://doi.org/10.3390/app14125083

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop