Programming Paradigm
Programming Paradigm
A programming paradigm is an approach to solve problems using some programming language. It is an approach to solve a problem using some tools and techniques that are available to us. Some of the programming paradigms are:
- Procedural paradigm
- Structutal paradigm
- Object-Oriented paradigm
- Procedural Paradigm
Procedural Programming can be defined as a programming model which is derived from structured programming, based upon the concept of calling procedure. It is programming aimed at improving the clarity, quality, and development time of computer program by making extensive use of the structured control flow constructs of selection (if/then/else) and repetition (while and for), block structures, and subroutines, in contrast to using simple tests and jumps such as the go-to statement. Example : Pascal, ALGOL, C.
- Structural Paradigm
In this programming, the user can create its own user-defined functions as well as this methodology tries to resolve issues that are associated with unconditional transfers to allow programmers to follow the logic of programs. It also requires more discipline at the design and logical structuring stage. Example : Pascal, ALGOL, C, Modula-2, etc.
- Object-Oriented Paradigm
In this paradigm, programs are written as a collection of classes and objects. A basic element is an object and all kinds of computation are performed on the objects only. It gives more emphasis on data rather than the procedure. Many languages designed from the 1980s to the present are object-oriented, some of them are C++, Ada 95, Java, C#.