Skip to content

Types of paradigms

Types of Paradigms:

  • Imperative -- (**Instructions to follow ** To solve a problem).
  • Declarative -- (Se ** focuses on the problem ** to solve).
  • Structured -- (The solution to a problem follows ** a sequence from start to finish **).
  • Functional -- (Divide the problem into various solutions that will be executed by the ** declared functions **). Procedural programming or procedure programming is a programming paradigm.Many times it is applicable both in low -level programming languages and in high -level languages.In the event that this technique is applied in high -level languages, it will receive the name of functional programming.

    • They are called separate routines from the main program
    • Most global data -> No protection.
    • The procedures can usually be independent -> bad reuse of the code.

Procedural programming

  • Object -oriented -- Build ** objects based on objects**.
    1
    2
    3
    4
    wikipedia:
    Object -oriented programming is a programming paradigm
    Based on the concept of "objects", which can contain data and code.
    The data is in the form of fields and the code is in the form of procedures.
    

ADVANTAGES of PROGRAMMING with OOP

ADVANTAGES OF PROGRAMMING with OOP:

  • routines and data are combined in an object -> encapsulation.
  • Methods/Properties -> Interface defined for calls and data access.