Chapter 6. Overloading, Overriding, Runtime Type, and Object Orientation

OBJECTIVES

This chapter helps you to prepare for the exam by covering the following objectives from the “Overloading, Overriding, Runtime Type, and Object Orientation” section of the Sun testing objectives.

State the benefits of encapsulation in object-oriented design, and write code that implements tightly encapsulated classes and the relationships “is a” and “has a.”

  • You are almost guaranteed to see a question on encapsulation and class design relationships. These are easy questions to answer if you know the background concepts.

Write code to invoke overridden or overloaded methods and parental or overloaded constructors and describe the effect of invoking these methods. ...

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams 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.