Explore BrainMass
Share

class diagrams

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

Based on Guéhéneuc (2004) article (attached), describe how class diagrams can be used to document the structure of a Java program. What are some other models a programmer may need to fully understand the interaction between the various classes/objects in a Java program? What is the impact of not having diagrams that describe the program?

© BrainMass Inc. brainmass.com October 16, 2018, 7:18 pm ad1c9bdddf
https://brainmass.com/computer-science/processor-architectures/class-diagrams-111893

Attachments

Solution Preview

The structure of the Java language encourages the programmer to break up libraries into many classes, each describing a small part of the functionality. The class diagrams on the back cover are a good starting point for getting an impression of the relationships between classes

Class diagrams model the structure (rather than the behavior) of the class that makes up the system (or, more likely, the classes that make it up). These are depicted as simple boxes broken up into three general areas that show the name of the class, the class attributes, and the operations (methods, in Java). Class diagrams are widely used to define class structure in any programming language (Java, C++, and ...

Solution Summary

What are some other models a programmer may need to fully understand the interaction between the various classes/objects in a Java program?

$2.19
Similar Posting

Create a class diagram (in Visual Studio 2008) based on the given scenario.

Create a class diagram (in Visual Studio 2008 C#) based on the following scenario: When constructing classes that will represent objects in a system, it is important to ensure the integrity of those objects and be able to define the types of relationships they will form with other objects.

Define three classes: a student class, a subject class, and a course class. The student class will contain the necessary properties, such as studentID, that will be properly encapsulated with public getters/setters (accessors/mutators) while keeping the internal variables private. Use the same encapsulation techniques on the course and subject classes. The subject class will define an Object-Oriented Programming course, and will inherit from the course class that will contain the behaviors and properties common to all subjects.

After correctly constructing or encapsulating these three classes, create an inheritance relationship between the subject and the course. A course has a student, so define a composition method for a course that allows it to add students.

Completed class diagram should show each object's encapsulated methods, the inheritance between subject and course, and the composition of students in courses.

View Full Posting Details