Course Object Oriented Programming

Pillar 1: Abstraction

Course's Page 5 min Text by
User Image
Allan Garcia

In this class, we will see an example of using the First Pillar of Object-Oriented Programming: Abstraction.

What is Abstraction?

As we saw before, Abstraction, in Object Orientation, means disregarding irrelevant details and implementing only what is essential to the system.

This pillar is not directly related to the programming language, but to the system design.

Example of a problem

We will design a program that will receive a lot of people data. It must then present the name of the oldest person (in case of a tie, it must present all the oldest).

When we analyze the problem, we realize that there are three steps:

  1. Personal data;
  2. Processing: determining the age of the oldest;
  3. Output: names of the oldest people.

You can then divide the resolution into five steps: