Book a Demo

Author Topic: updating subclasses with superclass changes  (Read 3518 times)

atingley

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
updating subclasses with superclass changes
« on: September 22, 2004, 10:20:28 am »
How does one go about introducing superclass features in a subclass once the "generalize" relationship is established?  For example, a class A has methods 'a' and 'b'; Class B is a subclass of A.  Initially a popup comes up when the generalization relationship is drawn from B to A, asking which methods 'B' should override.  All is well and good.  Now add a new method 'c' to 'A'.

Is there a way to update class 'B' so it now overrides method 'c' as well?

Thanks,
Al

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: updating subclasses with superclass changes
« Reply #1 on: September 22, 2004, 04:29:46 pm »
Select subclass and use menu Element/Override Implementation  :)

hth
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.

atingley

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: updating subclasses with superclass changes
« Reply #2 on: September 23, 2004, 05:26:33 am »
Ah yes, thank you very much.
Silly me, I was looking only at the popup menu (I suppose I should spend more time with the toolbar menus now!).

I did notice the new overridden operation does not show up on the diagram in the subclass until one clicks the mouse in that subclass.  Perhaps a low-priority bug to be logged here?
Thanks again.
Al