Mohammed Ali, Hussein and Yashar Hamza, Mahmood and Ahmed Rashid, Tarik (2024) Exploring Polymorphism: Flexibility and Code Reusability in Object-Oriented Programming. Passer Journal of Basic and Applied Sciences, 6. pp. 502-512. ISSN 27065952
Text (Research Article)
PSR_Volume 6_Issue Special Issue_Pages 502-512.pdf - Published Version Download (392kB) |
Abstract
A key concept in object-oriented programming (OOP) is polymorphism, which enables objects or references to take on different forms depending on the situation. To allow for the creation of numerous sorts of objects, variables, and methods, it integrates ideas like virtual functions, function overriding, and function overloading. By enabling several implementations of the same function within parent classes, polymorphism promotes scalability and improves code clarity. Understanding how polymorphism is used in programming and how class objects may access and use it is crucial. This paper covers the idea of polymorphism, examines its uses, benefits, and drawbacks, and offers examples to show how it is used in OOP. Polymorphism allows for quick development, reuse of code, and flexibility in object-oriented programming paradigms.
Item Type: | Article |
---|---|
Uncontrolled Keywords: | Child Class, Code Reusability, OOP, Parent Class, Polymorphism |
Subjects: | Q Science > QA Mathematics > QA75 Electronic computers. Computer science Q Science > QA Mathematics > QA76 Computer software Engineering > Computer engineering |
Depositing User: | ePrints deposit |
Date Deposited: | 23 Sep 2024 13:43 |
Last Modified: | 23 Sep 2024 13:43 |
URI: | http://eprints.tiu.edu.iq/id/eprint/1656 |
Actions (login required)
View Item |