Object Oriented programming vs Procedure Oriented programming - PowerPoint PPT Presentation

About This Presentation
Title:

Object Oriented programming vs Procedure Oriented programming

Description:

Both programs and programs stand for "Procedure oriented programming" and POPs for the "Object Oriented programming". Object Oriented programming vs Procedure oriented programming is the Both programs are advanced users to solve the problem, but in different ways.. – PowerPoint PPT presentation

Number of Views:795

less

Transcript and Presenter's Notes

Title: Object Oriented programming vs Procedure Oriented programming


1
Python OOPs Concepts
2
  • Python programming language is an object of
    purpose. Python OOPs Concepts is allows us to
    develop applications that use the purpose of the
    product. In Python, we can easily create and use
    classes and objects.

3
Introduction to OOPs in Python
  • Python is a multi-paradigm programming language.
    Meaning, it supports different programming
    approach.
  • One of the popular approach to solve a
    programming problem is by creating objects. This
    is known as Object-Oriented Programming (OOP).
  • An object has two characteristics
  • 1) attributes
  • 2) behavior

4
  • Major principles of object-oriented programming
    system are given below.
  • Object
  • Class
  • Method
  • Inheritance
  • Polymorphism
  • Data Abstraction
  • Encapsulation

5
Object
  • An object (eg) is possible in the classroom. When
    classified, the only explanation of the item is
    defined. Therefore, it does not give memory or
    storage.

6
Class
  • The class is a type of Thing. We can think of a
    parrot and a label. This includes all the details
    about the name, color, size, etc. According to
    this explanation, we can study the nursery
    schools. Here, theft is something.

7
Method
  • The system of procedures is defined in the
    classroom. It is used to describe the behavior of
    the product.

8
Inheritance
  • Support is one of the purpose of the product.
    These specialties will receive all the properties
    and behaviors of the parent. Applying for
    inheritance can create a new classroom or change
    in classrooms. class A class class or classmate
    from the childs classroom class is called a
    parent or class.
  • It provides re-usability of the code.

9
Polymorphism
  • Polymorphism consists of two words poly and
    morphs. Poly is often referred to as Morphs
    means the form, shape.
  • Polymorphism is an ability (in OOP) to use common
    interface for multiple form (data types).
  • Suppose, we need to color a shape, there are
    multiple shape option (rectangle, square,
    circle). However we could use same method to
    color any shape. This concept is called
    Polymorphism.

10
Data Abstraction
  • Data abstraction and encapsulation both are often
    used as synonyms. Both are nearly synonym because
    data abstraction is achieved through
    encapsulation.
  • Abstraction is used to hide internal details and
    show only functionalities. Abstracting something
    means to give names to things so that the name
    captures the core of what a function or a whole
    program does.

11
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 modified by
    accident.

12
Advantages
  • Improved software-development productivity
  • Improved software maintainability
  • Faster development
  • Lower cost of development
  • Higher-quality software

13
Disadvantages
  • Steep learning curve
  • Larger program size
  • Slower programs
  • Not suitable for all types of problems

14
  • Thank You
  • https//www.besanttechnologies.com/training-course
    s/python-training-institute-in-bangalore
Write a Comment
User Comments (0)
About PowerShow.com