Define class diagram , JAVA Programming

Class diagram technique is vital within Object Oriented functions. Class diagrams illustrate the kinds of objects in the system and the several static relationships among them. Class diagrams also define the methods and the attributes. Class diagrams have given possible relationships:

1. Association: A relationship between object instances of 2 classes.

2. Aggregation: An association in which one class refers to a collection. This is a part of a pure relationship where the phase may exist without the whole.

3. Composition: An association in which one class refers to a collection. This is a phase of a whole relationship where the part will not exist without the whole. If the whole is removed then the parts are deleted.

4. Generalization: An inheritance link indicating that one class is a parent class of the other. The Generalization expresses the "is a" relationship whereas the aggregation, association and composition describe the "has a" relationship.

5. Realization: defining of an interface.

6. Dependency: A dependency is a weak relationship where one class needs another class. The dependency refers the "uses" relationship.

 

Posted Date: 7/27/2012 5:00:18 AM | Location : United States







Related Discussions:- Define class diagram , Assignment Help, Ask Question on Define class diagram , Get Answer, Expert's Help, Define class diagram Discussions

Write discussion on Define class diagram
Your posts are moderated
Related Questions

java HW should be written with javadoc comment formatted

import java.text.NumberFormat; import java.util.Locale; public class Client {    // instance data    private String name;    private long income_this_year;    private double perce

How many static initializers can you have ? As many as you want, but the static initializers and class variable initializers are implemented in textual order and may not refer

What is the difference among microprocessors and microcontrollers? Give one example of both? The microprocessor is electronic equipment that can perform various functions and a

Synchronous messaging involves a client that waits for the server to respond to a message. So if one end is down the whole communication will fail.

We have to create a world class that contains a 2d array then create an abstract class called organism that contains move() method the organism should move randomly one step at the

What are the Sub categories of Artificial Intelligence? Briefly explain any two. 1. Robotics :  These are the machines that are computer programmed and perform work that was pr

? • ?read from a file a series of an infix algebraic expressions comprised of constant and variable operands (integers), operands (%, *, /, +, -) and parenthesis. Two slashes (//)

What do mean by synchronized methods and synchronized statements ?