What is Object-Oriented Programming?What is Object-Oriented Programming?

Python is an object-oriented programming language, where everything is an object, whether it be a function, a data type, or a value.

Object-oriented programming (OOP) is a programming methodology that involves representing a program as a collection of objects, where each object is an instance of a certain class.

In OOP, an Object is an entity that stores information about its state and provides a set of operations or behaviors for checking and changing that state.

OOP principles.

There are four main principles on which object-oriented programming (OOP) is based:

  • Inheritance - the ability to create new objects based on existing ones.
  • Encapsulation - the practice of hiding an object's internal state and functions and providing access only through a public set of functions.
  • Polymorphism - the ability to implement inherited properties or methods differently within objects.
  • Abstraction - the practice of modeling entities' required attributes and interactions as classes to define an abstract system representation.


Some programmers do not consider abstraction to be a principle of OOP.


What does OOP mean?

Select the correct answer

Everything was clear?

Section 1. Chapter 1