Book a Demo

Author Topic: Derived Classes  (Read 3873 times)

orcasoftware

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Derived Classes
« on: June 17, 2003, 09:33:19 pm »
It seems awkard to add derived classes.   Currently I am selecting Set Element Parent on the new class and then selecting the super class.  Why can I not just click on the Super Class and get a Create Derived Class menu option?  Or am I missing something?  
David Farrell-Garcia
Orca Software & Technologies
div Whidbey Island Software LLC
http://www.orcasoftware.com

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Derived Classes
« Reply #1 on: June 17, 2003, 09:52:55 pm »
Hi David,

You might like this option:

1.  In the project explorer, hold down cntrl and drag the parent onto the current diagram.

2.  Chose the option: "as New Child (Generalization)"

3.  Enter the child's name

4. Bingo! You have a derived class on the diagram.

(if the parent exists on the diagram also, a generalization link will be included).

This method might be quicker if say your creating a dozen type-safe vector classes (all deriving from a standard Vector class).   Then you just drag-and-drop from the tree instead of navigating a series of dialogues.

Hope this helps.

Regards,
Ben

orcasoftware

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Derived Classes
« Reply #2 on: June 18, 2003, 07:06:35 am »
Yes, I do like that!  Thanks Ben.
David Farrell-Garcia
Orca Software & Technologies
div Whidbey Island Software LLC
http://www.orcasoftware.com