Book a Demo

Author Topic: Constructor in class diagram  (Read 3541 times)

du-it

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Constructor in class diagram
« on: October 18, 2005, 02:40:22 am »
How can I describe a [glb]constuctor[/glb] or destrucotr respectively in a class diagram?
I found out how to define operations and attributes but not how to declare a con-/destructor.

Thank you,

Dirk

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: Constructor in class diagram
« Reply #1 on: October 18, 2005, 02:52:59 am »
They are just operations.

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Constructor in class diagram
« Reply #2 on: October 18, 2005, 03:48:24 pm »
Tip: I stereotype these beasts with <<ctor>> and <<dtor>> respecyively, makes them easy to hide.

Tip: Including them can confuse code gen/synch depending of the option settings.

bruce
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.