Programming Paradigm:
A Programming Paradigm defines the methodology of designing and implementing programs using the key features and building blocks of a programming language.
Following are the different programming paradigms:
(i) Procedural Programming: Procedural programming paradigm lays more emphasis on procedure or the algorithm. Data is considered secondary. Data is loosely available to many functions. This paradigm is: Decide which procedure we want; use the best algorithm we can find.
(ii) Object Based Programming: In object based programming, data and its associated meaningful functions are enclosed in one single entity a class. Classes enforce information hiding and abstraction thereby separating the implementation details and the user interface. It also supports user-defined types.
(iii) Object Oriented Programming: Object oriented programming offers all the features of object based programming and overcomes its limitation by implementing inheritance. The object oriented approach views a problem in terms of objects involved rather than procedure for doing it. We can define the object oriented programming (OOP) paradigm as following: Decide which classes and objects are needed; provide a full set of operations for each class.