Home » Abstraction

Tag Archives: Abstraction

Balanced Abstraction Principle

One of the things that make code complicated to read and understand is when the instructions inside a method are at different levels of abstraction. Let’s assume that our application only allows the logged-in user to see trips from her friends. If users are not friends, no trips should be displayed. An example:     public List<Trip> tripsByFriend(User user, User ...

Read More »

Abstraction in Java – The ULTIMATE Tutorial (PDF Download)

EDITORIAL NOTE: In this post, we feature a comprehensive Abstraction in Java Tutorial. Abstraction occurs during class level design, with the objective of hiding the implementation complexity of how the the features offered by an API / design / system were implemented, in a sense simplifying the ‘interface’ to access the underlying implementation. This process can be repeated at increasingly ...

Read More »