O'Reilly logo

Introduction to the Art of Programming Using Scala by Mark C. Lewis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 19

Abstraction and Polymorphism

Understanding the concept of abstraction is critical for improving your capabilities as a programmer. The ability to express our thoughts in more abstract ways is a significant part of what has allowed modern software systems to scale to the size they are today. We have dealt a little with abstraction already. Back in section 6.4 we saw how we could pass a function as an argument to allow us to accumulate multiple different types of values using a single recursive function. The basic idea of abstraction is that you want to write code where some part of what it does is not fully specified until it is used. We have used this idea significantly through the different methods in the Application Programming Interface ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required