programplug Logo




Python OOP Concept


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
  • Object
  • Method
  • Inheritance
  • Polymorphism
  • Data Abstraction
  • Encapsulation

Class

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.

Syntax
class class_name():
   statement 1
   statement 2
   statement 3

Object

Object is self-contained component which consists of methods and properties.In Python is an object, and almost everything has attributes and methods.

Syntax
c=class_name()

Method

Method is special kind of function that is associated with an object.Any object type can have methods.


Inheritance

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

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.


Data Abstraction

Abstraction is a process used to hide internal details and show only functionalities.


Encapsulation

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".







Our Services

Developing Cheapest Websites
Offer Digital Marketing
Provide College Projects
Attractive Website Developing
Summer Training,Industrial Training
SCO,SMO

Contact Us

Dehradun Uttarakhand India
www.programplug.com
info@programplug.com
0000000000

Other Link

About Us

Contact Us

Disclaimer

Privacy Policy