O'Reilly logo

Special Edition Using Java 2 Standard Edition by Geoff Friesen, Chuck Cavaness, Brian Keeton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building a Hierarchy: Steps in OOP Design

When setting out to develop an OOP program for the first time, it is often helpful to have an ordered set of steps to follow. Developing good OOP structures is like most work that you do in that the outcome is largely determined by the analysis of the problem that you do before attempting a solution. In the case of OOP, the goal here is to first decide what classes and objects are required to support a program before doing any coding. This section introduces several steps to guide you through that process.

Decompose the Problem into Entities

When writing an OOP program, it's first necessary to figure out the types of objects that are needed. As an example, if you were writing an adventure video game, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required