You are on page 1of 3

ABSTRACTION

• The mechanism and practice of abstraction


involves reducing and factoring out details so that
one can focus on end goals.

• Structured programming involves the splitting of


complex program tasks into smaller pieces with clear
flow-control and interfaces between components,
with reduction of overall complexity.
TYPES OF ABSTRACTION
1) Control abstraction - abstraction of actions.
Oops involves the use of subprograms and
formatted control flows to simulate desired
concepts of surreal features or interactions in
reality or in some abstract world.
2) Data abstraction - Allows handling data bits in
meaningful ways. For example, it is the basic
motivation behind datatype.
One can regard object-oriented programming as an
attempt to abstract both data and code.
REAL LIFE EXAMPLE
• For example, people do not think of a car
as a set of tens of thousands of individual
parts. They think of it as a well-defined object
with its own unique behavior. This abstraction
allows people to use a car to drive to the
grocery store without being overwhelmed by
the complexity of the parts that form the car.
They can ignore the details of how the engine,
transmission, and braking systems work.
Instead they are free to utilize the object as a
whole.

You might also like