OOPS Concept in Python

Shreya Borkar
2 min readMar 10, 2022

--

1]Class:- A class is a collection of objects. A class contains the blueprints or the prototype from which the objects are being created.

2]Objects:- The object is a real time entity that has a state and behavior associated with it. An Object is an instance of a Class. A class is like a blueprint while an instance is a copy of the class with actual values.

3]Polymorphism:- Polymorphism means having many forms. Same entity behaves differently according to different scenarios.

4]Abstraction:- Abstraction means hiding data. Abstraction can be achieved by using abstract classes and interfaces. A class that consists of one or more abstract method is called the abstract class.

5]Inheritance:- Inheritance means creating derived class from already existing classes that is base class. The derived class inherit properties from base class. There are different types of inheritance such as single inheritance, multiple inheritance, multilevel inheritance.

--

--