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