O'Reilly logo

Graphic Java™ 1.2, Volume I: AWT, Third Edition by David M. Geary

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

Refactoring the Unit Test

As an aside, we should mention that the DrawingPanel class was born out of a first attempt at a RubberbandTest applet, in the manner described below.

The object-oriented design process is an iterative one.[1] Classes are written, and as other classes are added to a system, insights are gained which often result in existing classes being refactored, meaning their implementations are modified to some degree according to a number of criteria. criterion. One of the mainstays of refactoring is to identify basic abstractions that can may be shared among a number of different classes in the midst of specialized pieces of functionality. When such code is identified, it is separated from the specialized code and packaged into ...

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