Skip to main content

Chapter 12 Object Extension Mechanisms

In this section we discuss a rather broad topic that is in some sense a cornerstone of software development, namely that of extending the behavior of objects. What I mean by this is that we have some class whose objects do something, and now we want to extend that behavior, have them do some new thing or behave in some different way. We will study the main mechanisms by which we can accomplish this in an object oriented language like Java.