Software Engineering with Python part 3: Classes

Cássio Bolba
6 min readJan 21, 2023

In this series we already covered the basics of code formatting in the first article, then we talked a little bit about modularisation where we checked the benefits of writing modules, and now we gonna take a look on Classes.

If you are interested in this series, follow the link to the other articles:

Software Engineering with Python part 1: The foundation
Software Engineering with Python part 2: Modules
Software Engineering with Python part 3: Classes
Software Engineering with Python part 4: Maintainability

I also have another python series, talking about efficient code, if you also have interest, it starts here.

Adding Classes do Modules

To make it easy:

Classes provide a means of bundling data and functionality together. Creating a new class creates a new type of object, allowing new instances of that type to be made. Each class instance can have attributes attached to it for maintaining its state. Class instances can also have methods (defined by its class) for modifying its state. (source)

The use of classes is important to have a better understanding of OOP (object oriented programing) to have a clean and…

--

--

Cássio Bolba
Cássio Bolba

Written by Cássio Bolba

Senior Data Engineer | Udemy Teacher | Expat in Germany | Mentor -> https://linktr.ee/cassiobolba

No responses yet