You are not logged in.

wcf.regNote.message

kroschel

Beginner

  • "kroschel" started this thread

Posts: 1

  • Send private message

1

Sunday, June 11th 2006, 4:55pm

Klassendiagramm

hi...

Ich hoffe es kennt dich jemand ein bisschen mit Klassendiagrammen aus.
ich hab mal eine Frage zur Realisierung:
am besten schreib ich mal ein (Pseudo)Codedbeispiel:

Ist Java Code

Source code

1
2
3
4
5
6
7
8
9
10
   1.
      interface Auto {}
   2.
      class Lkw implements Auto {} //das ist klar, wie hier die Beziehung ist
   3.
      class test {
   
      Auto tst = new Lkw(); //Kann ich das grafisch dastellen?
   
      }


Meine Frage: Kann ich das (Auto tst...) als Beziehung dastellen, oder einfach nur als Variable definieren?

Danke für eure Hilfe

This post has been edited 1 times, last edit by "kroschel" (Jun 11th 2006, 4:55pm)


daxter

Beginner

Posts: 2

  • Send private message

2

Saturday, September 23rd 2006, 4:40pm

RE: Klassendiagramm

tst ist eine instanz der klasse Lkw! das wuerde ich auch so modellieren.
das kann man als Attribut darstellen.

in einem sequenzdiagramm koenntest du dann darstellen,
dass die klasse test in einer methode den konstruktor der
Klasse Lkw aufruft...


greets
daxter

CiL

Beginner

Posts: 37

  • Send private message

3

Wednesday, February 7th 2007, 3:39pm

Im Anhang is das in UML verfasst!

Das ist ja keine Klasse Auto sondern ein Interface du kannst keine Instanz von Auto erzeugen sondern das Interface nur nutzen!
CiL has attached the following file:
  • uml.jpg (9.48 kB - 56 times downloaded - latest: Aug 18th 2009, 7:15pm)

This post has been edited 1 times, last edit by "CiL" (Feb 7th 2007, 3:40pm)


wcf.user.socialbookmarks.titel