Book a Demo

Author Topic: Virtual Inheritance?  (Read 6132 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Virtual Inheritance?
« on: April 14, 2005, 09:22:44 pm »
OK, I surrender! ???

There's a checkbox on the Generalization Properties General Tab marked Virtual Inheritance.

There's no mention of it in the documentation, and it doesn't appear to be UML 2. ::)

However, its name seems intriguingly close to a functionality I'd love to see in modelling tools. 8)

Can anyone enlighten me?

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Virtual Inheritance?
« Reply #1 on: April 14, 2005, 10:13:24 pm »
Virtual Inheritance is a C++ technique for dealing with multiple instances of inherited base classes. I think Bruce put up a link a few months ago...

[sound of search engine whirring away]

...ah, here it is! http://cplus.about.com/od/beginnerctutorial/l/aa121502a.htm (thanks Bruce)
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Virtual Inheritance?
« Reply #2 on: April 14, 2005, 10:26:35 pm »
Thanks,

I now realise what I'm really after is derived (not virtual) inheritance.

After I fired off the post, I remembered that it was a C++ concept - but not its rationale.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!