python

standard data types

immutable

    numbers
    strings
    tupples

mutable

    lists
    sets
    dictionaris

object oriented programming

object is an real world entity such as pen ,chair,table,etc

object oriented programming is methodology or paradigma to design a program using classes and objet.

it simplyfies software development and maintainance by providing some concepts.

  • class
  • inheritence
  • polymorphism
  • encapsulation
  • abstaction
  • class:

  • collection of object
  • Inheritence:

  • when one object aquires all the properties and behavior of a parent object is called inheritence
  • it provides code reuseability
    it is used to achieve run time polymorphism

    polymorphism:

  • one task perform in different ways.
  • Abstraction:

  • Hiding internal details and showing functionality is known as abstrction
  • encapsulation:

  • Binding code and data into a single unit are known as encapsulation
  • Difference between pop and oop

    popoop
    It deals with algorithmsIt deals with data
    programs are divided into functionsprograms are divided into objects
    Most of the function share global datadata structures characterizes objects.
    data move from function to functionfunction that operate on data are bind to form classes
    functions are responsible for tranforming from one form to anotherdata is hidden cannot be accessed by out side functions
    It is top down approachIt is bottom up approach
    It needs very less memoryIt needs more memory then pop
    It does not have any access specifiersIt has access specifiers like private,public and protected.
    It is less secureIt is more secure
    It follows no overloadingIt follows the operator and function overloading

    Comments

    Popular Posts