Chapter 7Methods and Encapsulation
OCP exam objectives covered in this chapter:
- Creating and Using Methods
- Create methods and constructors with arguments and return values
- Create and invoke overloaded methods
- Apply the static keyword to methods and fields
- Applying Encapsulation
- Apply access modifiers
- Apply encapsulation principles to a class
In previous chapters, you learned how to use methods without examining them in detail. In this ...
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.