Chapter 9Advanced Class Design

OCP exam objectives covered in this chapter:

  • images  Reusing Implementations Through Inheritance
    • Create and extend abstract classes
  • images  Programming Abstractly Through Interfaces
    • Create and implement interfaces
    • Distinguish class inheritance from interface inheritance including abstract classes

images In Chapter 8, “Class Design,” we showed you how to create classes utilizing inheritance and polymorphism. In this chapter, we ...

Get OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide 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.