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
1. The purpose of this problem is to practice using ArrayLists.Write a Java client file containing a mainmethod plus other methods as needed to solve the following problem (no clas

The SudCell Class A single cell in a Sudoku must clearly represent a number from 1 to 9 .  But in a solver context, we need much more.  It isn't enough to say "this c

An object that having the data being transferred among JMS clients.

What do you mean about networking support in Java ?

At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with thes

Need JVC Everio stream converter Project Description: JVC Everio is a brand of cameras capable of real time streaming/ encodinig. To get the video from a PC or a mobile de

Explain what is Multilevel Inheritance ? The Car-Motorcycle-MotorVehicle instances showed single-level inheritance. There's nothing to stop you from going next. You can describ


need a java program that can read and display the values from a windows registry

What is the role of fonts in java explain with example? You've already seen one instance of drawing text in the HelloWorldApplet program of the last chapter. You call the drawS