Book a Demo

Author Topic: Beginner:  my first object diagram  (Read 2506 times)

alceli

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Beginner:  my first object diagram
« on: October 23, 2013, 11:28:23 pm »
So I have created my first class in a class diagram :), now want to create two instances of that class, and generate the code.  Can't find in the on-line help how to do this other than manually creating them in a object diagram.  But then are the two diagrams 'linked'? just by having the object named after the class???

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Beginner:  my first object diagram
« Reply #1 on: October 24, 2013, 12:01:22 am »
If you ctrl-drag a class onto a diagram and choose As Instance it will create an instance object. This is linked to the class as its classifier. Use Cltr-L on the instance to find/alter the classifier. Use Ctrl-U to find where the classifier is used in other diagrams.

q.