Programming Paradigm
Procedural Programming
style of programming in which the programming task is broken down into a series of operations (called procedures) applied to data (or data structures)
C and Pascal
Object-Oriented Programming
extension of procedural programming breaks down a programming task into a series of interactions among different entities or objects Java, C++, and Smalltalk
Introduction to OOP
* Property of STI
Page 1 of 15
Computer Programming 2
Object-Oriented
Programming
type of programming in which programmers define not only the data structures, but also the types of operations (methods) that can be applied to the data structure enables programmers to create modules that do not need to be changed when a new type of object is added most widely used paradigm instead of focusing on what the system has to do, focus on:
what objects the system contains
how they interact towards solving the programming problem
Introduction to OOP
* Property of STI
Page 2 of 15
1 _________________
___________________
___________________
___________________
___________________
___________________
___________________
___________________
___________________
___________________
___________________
___________________
2 _________________
___________________
___________________
___________________
___________________
___________________
___________________
___________________
___________________
___________________
___________________
___________________
Computer Programming 2
Object-Oriented
Programming
Illustration of OOP
Introduction to OOP
* Property of STI
Page 3 of 15
Computer Programming 2
Object-Oriented
Programming
Advantages of OOP over conventional approaches:
It provides a clear modular structure for programs which makes it good for defining abstract data types where implementation details are