DS140223 #What is OOPs in Python?

2 Likes

Neat work @vaishu.swap10112016 :smile:!

1 Like

OOPS, is object-oriented programming .python is one of the object-oriented programing the entire oops concept is based on classes and objects in programming. the objects in Oops are real-time entities because of that python aims to implement the four real-world entity concepts like inheritance, polymorphism, encapsulation, and abstraction. The concept of OOPs is to bind the data and the functions or methods.
class:
A class is a collection of objects. A class contains the blueprints or the prototype from which the objects are being created. It is a logical entity that contains some attributes and methods. work on that together as a single unit so that no other part of the code can access this data.
objects:
The object is an entity that has a state and behavior associated with it. It may be any real-world object like a mouse, keyboard, chair, table, pen, etc.

1 Like