Posts

Showing posts with the label java

Objects and Java

Image
Objects and Java by Bill Venners Chapter 2: Classes and Objects Objects and Java  |  Contents  |  Previous  |  Next   Abstraction When you set out to design a Java program, you have to create abstractions. You are faced with a problem domain and (with luck) a specification, and you have to architect [bv: is architect a verb?] a solution. (The  problem domain  is the subject area of a particular programming effort, such as "accounting," "elevator control," or "word processing.") Given that Java is an object-oriented language, you will likely want to perform an object-oriented design. In the process, you will end up with abstractions in the form of objects, types, attributes, and behaviors. The object-oriented design process involves the following three tasks: dividing the problem domain into types of objects, modeling the relationships between the types, and modeling the attributes and behaviors of each type. These tasks are not listed in