Sparkles

that were shone when I got tempered!

Class Diagrams – Representing in Java classes

leave a comment »

Representing Different relationships between classes.Association, Composition UML

Different relationships between classes (like Association, Inheritance, Implementation, Dependency, Aggregation and Composition etc) can be represented using different arrows and symbols as follows.

Here, these relationships can be more clarified using below like class diagrams generated using ObjectAid in eclipse

A.java


package testOA;

public class A {

 public A() {
 bain = new B();
 }
 
 private void testA() {

 C c = new C();
 }
 
 final BaIn bain;
 
}

B.java

package testOA;

public class B extends Ba{

}

Ba.java

package testOA;

public class Ba implements BaIn{

}

BaIn.java

package testOA;

public interface BaIn {

}

C.java

package testOA;

public class Ba implements BaIn{

}

Class Diagram :
CLS-DGR

References :

Advertisements

Written by Namal Fernando

February 11, 2015 at 6:12 pm

Posted in Class Diagrams, UML

Tagged with

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Ruth's Reflections

Contemplations from quakey quirky Christchurch

TED Blog

The TED Blog shares interesting news about TED, TED Talks video, the TED Prize and more.

Ziplok

Learn and discover simple things

Meihta Dwiguna Saputra's Knowledge Base

~In learning you will teach and in teaching you will (re)learn~

The Java Blog

Thoughts, tips and tricks about the Java programming language

Sparkles

that were shone when I got tempered!

%d bloggers like this: