The BASE for JAVA LEARNING

by PRO FE S S OR


A B S T R A C T I O N

AN OBJECT-ORIENTED FEATURE


Abstraction is a concept used in different phases in Object-Oriented Programming.

During the insertion phase of the Software Life Cycle:

  • The code objective and
  • All the items necessary for the program implementation.


During the development phase of the Software Life Cycle:

As an example, let's say that we have three concrete classes: a Book class, a Manual class, and a Brochure class. All of these classes need to interface with objects of other classes. In order to facilitate the interface, we create an abstraction about these three classes. In this case, an abstraction can be a "Readable" interface, as instances of these three classes represent things that can be read.

When an outside class wants to interface with either the Book class, or the Manual class, or the Brochure class, it can do so by coupling with the "Readable" interface.