Book a Demo

Author Topic: How to implement an abstract class  (Read 6698 times)

tsturgeon

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
How to implement an abstract class
« on: January 26, 2004, 08:05:11 am »
Hello.

I have created an abstract class and I have two questions:
1) It seems that it allows me to give the abstract class attributes, which, of course, are not inherited in the concrete class.
2) When I try to inheris one class from another class, with the parent class not being abstract, the generalization association doesn't seem to put the attributes in the child class.

Finally, there seems to be a learning curve with this product...is there any training besides the onsite training? Like a book on the product?


Sean Kearon

  • EA User
  • **
  • Posts: 126
  • Karma: +0/-0
    • View Profile
Re: How to implement an abstract class
« Reply #1 on: January 26, 2004, 08:46:08 am »
1 - It does let you put attributes on abstract classes.  However, you cannot override these whether the class is abstract or not.

2 - When you create the generalisation relationship you should be presented with a dialog allowing you to override operations and interfaces.  You can get to this also by selecting the derived class and clicking on Element | Override Implementation.

Training - The Zicom Mentor addin (from the main page) has some material on using EA.  There is also a section in the help file contents on using EA.  Check out the EA main page for a link to the forthcoming IConix training CD and a few UML tutorials in the resources section.

HTH

Sean