Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Programming paradigms define the style and methodology to write code. Some of the major paradigms are :-

  • Procedural -
    • focuses on procedures or data that operate on data.
    • program is a sequence of tasks.
    • ex - c, fortran
  • Object Oriented -
    • Organized code around objects, which combine data (attributes) and operations (methods).
    • ex - c++, java, python
  • Functional -
    • treats computation as the evaluation of mathematical functions, avoiding state changes and mutable data.
    • ex - haskell, lisp