Book a Demo

Author Topic: Private inheritance  (Read 3521 times)

wolfgang

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Private inheritance
« on: November 03, 2003, 01:24:33 am »
Hi!

I'm a new user with EA but I worked with Rational Rose in the company I worked before  :-/

I tried to model a class that inherits privately from an interface class but I couldn't find anything in the generalization properties.

Any ideas?

/Wolfgang

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Private inheritance
« Reply #1 on: November 04, 2003, 09:42:00 pm »
Hi Wolfgang,

I don't believe the scope on inheritance links can be modelled currently (short of specifying it in a tagged value on the link properties).

This is a good suggestion though and it's now on our TODO list.

Regards,
Ben

wolfgang

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Private inheritance
« Reply #2 on: November 05, 2003, 05:39:27 am »
Hi Ben!

Great to hear that my input concerning modelling private inheritance is already on your TODO list.

Imho private inheritance is not widely used in the C++ community. Maybe the benefits of inheriting privacely from an abstract interface class and declaring all member functions implemented in the subclass private are not that obvious but I'm using it quite often so that was the reason for my query.

Although I'm working with EA for a short period my impression till now is that it is a good tool for a fair price.

Regards, Wolfgang