leafleafleafDocy banner shape 01Docy banner shape 02Man illustrationFlower illustration

Object-Oriented Programming – Chapter 7

Estimated reading: 1 minute 15 views

This chapter introduces concepts and methods related to object-oriented programming (OOP) in Python. A class is an OOP tool that enables programmers to abstract the problem they want to study, and an object is a concrete instance of a class.

We also covered how to create classes, their properties and methods, and how to use classes to create objects. In addition, a special function in the class – the constructor is introduced. Every time an instance of a class is created, the constructor method is automatically called, so that the properties of the class can be set to the desired values ​​when the instance is created.