PYTHON
PPT presentation
Name : Saste Kiran Rohidas
student ID : 76
Object-oriented Programing(OOP)
Object-oriented programming is a method of structuring a program by bundling related
properties and behaviors into individual object.
Conceptually, object are like the components of a system.
Features of OOP
Object
Class
Inheritance
Polymorphism
Encapsulation
Object
The object is an entity thet state and behavior.
It may be any real-world object like the mouse, keyboard,
chair, table, pen, etc.
Class
The class can be defined as a collection of objects.
It is a logical entity that has some specific attributes and methods.
Inheritance
Inheritance is the most important aspect of object-oriented programming which simulates
the real world concept of inheritance.
It specifies that the child object acquires all the properties and behaviors of the parent
object.
By using inheritance, we can creat a class which uses all the properties and behaviors of
another class.
• Single Inheritance
• Multiple Inheritance
• Multilevel Inheritance
Polymorphism
Polymorphism contains two words “poly” and “morphs”.
Poly means many and morph means form. By polymorphism, we
understand that one task can be perfomed in different ways.
Encapsulation
Encapsulation is also an important aspect of object-oriented programming.
It is used to restrict access to methods and variables.
In encapsulation, code and data are wrapped together within a single unit from being
modify by accident.
Thanks…