Java Reference
In-Depth Information
Document the Solution — Phase 6
The final phase in the development cycle is to document the completed
solution. The documentation for a completed programming project includes
the requirements documents, program design documents, user interface docu-
ments, and documentation of the code. The code should be archived electroni-
cally so that it can be accessed in the event that a programmer must fix an error
in the code or use the code for other purposes.
Final documentation for the Shipping Charge Calculator consists of all
documents generated during the development cycle. This also includes electronic
archiving and printing the program code and design. The complete set of docu-
ments for the project includes the requirements document, approval of require-
ments by the user and programmer, program design documents, test cases,
program code, and printed proof that the test cases were completed successfully.
Object-Oriented Programming and Design
The concepts of object-oriented programming and design represent a relatively
recent methodology of application development. As you have learned, Java is an
object-oriented programming language, meaning that it packages the data and
the code that operates on the data together into a single unit called an object.
Object-oriented design is an approach to program design that identifies how
objects must interact with each other in order to solve a problem.
Structured programs that are not object-oriented are more linear in nature
and must define precisely how the data will be used in each particular program.
With such a program, if the structure of the data changes, such as when a new
field is added to a table in a database, the program has to be changed. With the
dynamic nature of data in this information age, traditionally structured pro-
grams have limited use-time and high maintenance costs.
Today, object-oriented programming languages like Java are widely used in
many industries. Companies like General Motors, for example, now program
their assembly line so that cars (objects) on the assembly line can send messages
to paint booths asking for an available slot and color (data). The benefit is that
programs developed using an object-oriented approach are easier to develop,
debug, and maintain.
Object-Speak
The use of an object-oriented programming language such as Java requires
some new terminology, as well as some old terms with new definitions. The
following sections define the terms used in object-oriented programming and
design, along with the object-oriented programming constructs. A simple way
to think of these terms is to consider them the nouns, verbs, and adjectives
of object-speak; the constructs are the grammatical rules of object-oriented
languages.
Search WWH ::




Custom Search