Object-Oriented Programmingis a way to integrate with objects which can containdatain the form (attributesorpropertiesof objects), andcode blocksin the form of procedures (methods,functionsof objects). These attributes and methods arevariablesandfunctionsthat belong to the class, they are generally referred to…