0% found this document useful (0 votes)
19 views1 page

Oop 1

The document discusses four major programming paradigms: imperative, logical, functional, and object oriented. The imperative paradigm assumes variables and state changes. The logical paradigm takes a declarative approach. The functional paradigm views all programs as mathematical functions. Object oriented programming models real-world objects as independent entities that communicate through message passing.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views1 page

Oop 1

The document discusses four major programming paradigms: imperative, logical, functional, and object oriented. The imperative paradigm assumes variables and state changes. The logical paradigm takes a declarative approach. The functional paradigm views all programs as mathematical functions. Object oriented programming models real-world objects as independent entities that communicate through message passing.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Major Programming Paradigms

There are several kinds of major programming paradigms:

The imperative programming paradigm assumes that the computer can maintain through
environments of variables any changes in a computation process. Computations are performed
through a guided sequence of steps, in which these variables are referred to or changed. The order
of the steps is crucial, because a given step will have different consequences depending on the
current values of variables when the step is executed.

The Logical Paradigm takes a declarative approach to problem-solving. Various logical assertions
about a situation are made, establishing all known facts. Then queries are made. The role of the
computer becomes maintaining data and logical deduction.

The Functional Programming paradigm views all subprograms as functions in the mathematical
sense- informally, they take in arguments and return a single solution. The solution returned is
based entirely on the input, and the time at which a function is called has no relevance. The
computational model is therefore one of function application and reduction.

Object Oriented Programming (OOP) is a paradigm in which real-world objects are each viewed as
separate entities having their own state which is modified only by built in procedures, called
methods. Because objects operate independently, they are encapsulated into modules which
contain both local environments and methods. Communication with anobject is done by message
passing. Objects are organized into classes, from which they inherit methods and equivalent
variables. The object- oriented paradigm provides key benefits of reusable code and code
extensibility.

You might also like