Chapter 1 L2 Programming Paradigm
Chapter 1 L2 Programming Paradigm
and Technologies 1
Chapter 1: Programming Paradigm
What is a paradigm?
• The smallest and basic entity is object and all kind of computation
is performed on the objects only.
1. Data security
2. Inheritance
3. Code reusability
predicates
sumoftwonumber(integer, integer)
clauses
sum(0, 0).
sum(n, r):-
n1=n-1,
sum(n1, r1),
r=r1+n
Functional Programming Paradigm
• Operate only through functions which return one value given a list
of parameters.