Intro To C++
Intro To C++
INTRODUCTION
Procedure Oriented programming
Top down approach where program is viewed as a sequence
of tasks to be performed.
Consists of
Writing a list of instructions for the computer to follow
Organize these instructions into groups called functions
Little attention is paid to data used by the functions
Inadvertent changes to global data.
Does not model real world problems
Object Oriented Programming
“An approach that provides a way of modularizing programs by
creating partitioned memory areas for both data and functions that
can be used as templates for creating copies of such modules on
demand.”
Data is closely bound to the functions that operate on it and
protects it from modification outside system. Data is not allowed
to flow freely around the system.
Allows division of problem into a number of entities called
objects. Data of an object is accessed only by the functions
associated with that object.
Data is hidden in cannot accessed by other functions
Objects may communicate with each other through functions
New data and functions can be easily added when needed
Follows bottom up approach
Communication