Chapter 8Class Design

OCP exam objectives covered in this chapter:

  • images  Creating and Using Methods
    • Create methods and constructors with arguments and return values
  • images  Reusing Implementations Through Inheritance
    • Create and use subclasses and superclasses
    • Enable polymorphism by overriding methods
    • Utilize polymorphism to cast and call methods, differentiating object type versus reference type
    • Distinguish overloading, overriding, and hiding

images In Chapter ...

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.