Why Object Orientation?
The previous two chapters introduced the basic concepts behind object orientation and much of its terminology. It also explored some of the motivation which led to the object-oriented movement. This chapter looks at how object orientation addresses some of the issues which have been raised with procedural languages. To do this it looks at how a small extract of a program might be written in a language such as C, considers the problems faced by the C developer and then looks at how the same functionality might be achieved in an object-oriented language such as Java. Again, do not worry too much about the syntax you will be presented with — it will be Java, but it should not detract from the legibility of the examples.
KeywordsHunt Encapsulation Briton
Unable to display preview. Download preview PDF.