Treffer: Detailed Study of the Object-Oriented Programming (OOP) Features in Python

Title:
Detailed Study of the Object-Oriented Programming (OOP) Features in Python
Source:
British Journal of Computer, Networking and Information Technology. 6:83-93
Publisher Information:
African - British Journals, 2023.
Publication Year:
2023
Document Type:
Fachzeitschrift Article
Language:
English
ISSN:
2689-5315
DOI:
10.52589/bjcnit-facsojao
Rights:
CC BY NC ND
Accession Number:
edsair.doi...........728ba8b6bf21dbcb32542fcdfa8fb476
Database:
OpenAIRE

Weitere Informationen

Human beings are naturally classified; OOP is closely aligned to how human brains work. The Mathematical functional approach is a more rigorous way to capture an idea; it is more difficult to transpose and the code is not easily readable. To overcome the limitations of procedural, structural, and functional programming, OOP was developed. Because of its versatility, it supports various programming styles which include maintenance, addition and overriding; however, modification of existing code is made easier. OOP programs prevent you from repeating code, making developers choose OOP in their python program because a class can be defined once and reused many times (Thelin, 2020). By the end of this article, you will be able to create classes, instantiate objects from them, and integrate the four methods of OOP by creating modules of Python projects. With the basic concept of OOP in Python, this article has shown how we can hide our data by making it private (abstraction), allowing for code reusability (inheritance), constraining dependency management through polymorphism and rapping data and function together to prevent data from being accessed by the code outside this shield (encapsulation).