O'Reilly logo

Oracle Certified Professional Java SE 7 Programmer Exams 1Z0-804 and 1Z0-805: A Comprehensive OCPJP 7 Certification Guide by Tushar Sharma, S G Ganesh

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 5

image

Object-Oriented Design Principles

9781430247647_unFig05-01.jpg

We covered object-oriented programming basics in Chapter 3 and more advanced OOP topics in Chapter 4. In this chapter, we delve still more deeply into OOP concepts.

The chapter begins with an in-depth investigation of interfaces. We will discuss how interfaces are different from abstract classes and which construct to use in a given situation. In the second section, we introduce you to the object composition principle that says “favor composition over inheritance.”  The third and fourth sections ...

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