Day-6: OOPS
and
Workshop on “Introduction
EXCEPTION
to Python”
28/06/2018
Workshop on “Introduction to
Python”
Department Of
Computer Science
Engineering
1
SKFGI, Mankundu
, Different Programming Models
Both are programming processes whereas OOP stands for “Object
Oriented Programming” and POP stands for “Procedure Oriented
Programming”. Both are programming languages that use high-level
programming to solve a problem but using different approaches. These
approaches in technical terms are known as programming paradigms. A
programmer can take different approaches to write a program because
there’s no direct approach to solve a particular problem. This is where
programming languages come to the picture. A program makes it easy to
resolve the problem using just the right approach or you can say ‘paradigm’.
Object-oriented programming and procedure-oriented programming are two
such paradigms.
2
,What is Procedure Oriented Programming (POP)?
POP follows a step-by-step approach to break down a task into a collection
of variables and routines (or subroutines) through a sequence of
instructions. Each step is carried out in order in a systematic manner so that
a computer can understand what to do. The program is divided into small
parts called functions and then it follows a series of computational steps to
be carried out in order.
It follows a top-down approach to actually solve a problem, hence the name.
Procedures correspond to functions and each function has its own purpose.
Dividing the program into functions is the key to procedural programming.
So a number of different functions are written in order to accomplish the
tasks.
3
, What is Object Oriented Programming (OOP)?
OOP is a high-level programming language where a program is divided into
small chunks called objects using the object-oriented model, hence the
name. This paradigm is based on objects and classes.
4
and
Workshop on “Introduction
EXCEPTION
to Python”
28/06/2018
Workshop on “Introduction to
Python”
Department Of
Computer Science
Engineering
1
SKFGI, Mankundu
, Different Programming Models
Both are programming processes whereas OOP stands for “Object
Oriented Programming” and POP stands for “Procedure Oriented
Programming”. Both are programming languages that use high-level
programming to solve a problem but using different approaches. These
approaches in technical terms are known as programming paradigms. A
programmer can take different approaches to write a program because
there’s no direct approach to solve a particular problem. This is where
programming languages come to the picture. A program makes it easy to
resolve the problem using just the right approach or you can say ‘paradigm’.
Object-oriented programming and procedure-oriented programming are two
such paradigms.
2
,What is Procedure Oriented Programming (POP)?
POP follows a step-by-step approach to break down a task into a collection
of variables and routines (or subroutines) through a sequence of
instructions. Each step is carried out in order in a systematic manner so that
a computer can understand what to do. The program is divided into small
parts called functions and then it follows a series of computational steps to
be carried out in order.
It follows a top-down approach to actually solve a problem, hence the name.
Procedures correspond to functions and each function has its own purpose.
Dividing the program into functions is the key to procedural programming.
So a number of different functions are written in order to accomplish the
tasks.
3
, What is Object Oriented Programming (OOP)?
OOP is a high-level programming language where a program is divided into
small chunks called objects using the object-oriented model, hence the
name. This paradigm is based on objects and classes.
4