Docstoc

Java Class Structure ERD Carolyn Fox CIS 4930 Aesthetic Computing Description This model tries to illustrate the structure of classes in Java by using an Entity Relationship Diagram ERD When

Document Sample
Java Class Structure ERD Carolyn Fox CIS 4930 Aesthetic Computing Description This model tries to illustrate the structure of classes in Java by using an Entity Relationship Diagram ERD When Powered By Docstoc
					Java Class Structure (ERD) Carolyn Fox CIS 4930: Aesthetic Computing

Description This model tries to illustrate the structure of classes in Java by using an Entity Relationship Diagram (ERD). When I first learned Java it was very hard to comprehend the concept of classes, objects, states and behaviors. I think a lot of people who are just starting to learn Java or any other object-oriented programming language would benefit from seeing this model. I think seeing a physical representation of abstract terms or concepts of the object-oriented paradigm would greatly facilitate the learning process of the subject. This model is my interpretation of the Java class structure. It includes objects, behaviors and states and local variables. It tries to represent how classes interact with each other through inheritance and the relationship between objects belonging to different classes. It also shows how objects act on behaviors to access their states. I used foam board, balsa wood, plastic tubing beads, acrylic paint and hot glue. This model consists of two classes. The upper yellow class (Refer to the mapping on the other side of this page for how these elements are presented physically in the model.) is the parent to the lower red class. Therefore, the red class extends the yellow class. If there is an extension between classes then they are connected by the balsa wood structure. Classes can create objects of its own class or of other classes. The color of an object corresponds to the color of the class that it operates in. For example, in the red class, red objects, which were created in other classes, are operating on the behaviors of that class. In the yellow class, there is a yellow and a red object. The red one has access to all the behaviors and states of the yellow class because it is it the child class. The objects that are not operating on any behavior and were declared in that class are floating in the class space. There are public and private states in both classes. The private ones are covered and can only be used by behaviors of the class in which they were declared. The public ones are out in the open for all behaviors of that class or child classes to use.

Structure

Mapping

Views


				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:36
posted:11/29/2009
language:English
pages:4
Jun Wang Jun Wang Dr
About Some of Those documents come from internet for research purpose,if you have the copyrights of one of them,tell me by mail vixychina@gmail.com.Thank you!