Python support object-oriented programming concept.In Python, we can easily create and use classes and objects.By using OOP's develop many applications.
Some Important concept of object-oriented programming are given below-
Class describe properties and method of an object.In other world class is a description of an object.Class is a blueprint or a set of instruction to build a specific type of object.
class class_name(): statement 1 statement 2 statement 3
Object is self-contained component which consists of methods and properties.In Python is an object, and almost everything has attributes and methods.
c=class_name()
Method is special kind of function that is associated with an object.Any object type can have methods.
It is a process by which object of one class aquire the properties or features of objects of another class.Inheritance is useful for "Reusability of codes".
Polymorphism is made by two words "poly" and "morphs".Polymorphism means ability to take more than one form "Many Forms Of Data".The behaviour depends upon the types of data used in operations.
Abstraction is a process used to hide internal details and show only functionalities.
Combining data and functions(method) into a single unit called class and the process is known as Encapsulation.Encapsulation is used to restrict access of methods and variables "Data Hidden".