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

Publication Date: 29/11/2023

DOI: 10.52589/BJCNIT-FACSOJAO


Author(s): Nzerue-Kenneth Peace Ezinne, Onu Fergus Uchenna, Denis Ashishie Undiukeye, Igwe Joseph Sunday, Ogbu Nwani Henry.

Volume/Issue: Volume 6 , Issue 1 (2023)



Abstract:

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).


Keywords:

OOP Object Oriented Programming, features of OOP, Inheritance, Encapsulation, Abstraction, Polymorphism.


No. of Downloads: 0

View: 477




This article is published under the terms of the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)
CC BY-NC-ND 4.0