Chapter 16

Object-Orientation

From the beginning we have said that Scala is a completely object-oriented language. You have been using objects and calling methods on them since back in chapter 3 when we were taking our first steps in the language. Despite this, we have actually done very little with object-orientation. This has been intentional. So far we have been building up your logic skills and teaching you to break problems up into different functional units. Now that your problem-solving skills have reached a sufficient level, we will take the next step to have you doing full object-oriented decomposition of problems. Beginning with this chapter we will also start really revealing many of the details behind things that we have been using ...

Get Introduction to the Art of Programming Using Scala now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.