- OOP(object oriented programming) is used to solve the problems with the help of classes and objects.
- Python is an object oriented programming language like c++,java and c#.
- We can easily develop the applications using this object oriented approach.
- An object oriented paradigm is used to design the program using using classes and objects.
- This oops concepts in python focuses on creating reusable code.
There are some major concepts is used in oops(object -oriented programming system) as given below.
- class
- object
- method
- Inheritance
- Polymorphism
- Encapsulation
- Abstraction
1.) Class:
- A class is a blue print of an object.
- A class is a collection of data and methods