CHAPTER 2

image

Java Class Design

Certification Objectives

Implement encapsulation

Implement inheritance including visibility modifiers and composition

Implement polymorphism

Override hashCode, equals, and toString methods from Object class

Create and use singleton classes and immutable classes

Develop code that uses static keyword on initialize blocks, variables, methods, and classes

Object-Orientation (OO) is the core of the most mainstream programming languages today. To create high-quality designs and software, it is important to get a good grasp of object oriented concepts. This chapter on class design and the next chapter on advanced class design ...

Get Oracle Certified Professional Java SE 8 Programmer Exam 1Z0-809: A Comprehensive OCPJP 8 Certification Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.