Object-Oriented Programming – Chapter 7
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.