Specifying inheritance


Inheritance is the mechanism by which more specific elements incorporate the structure and behavior of more general elements related by behavior. The number of inheritance relationships for a class is not restricted.

In Open ModelSphere, the inheritance is a relationship between two classes. It does not have any design properties. However, the class’ properties window will display direct superclasses and subclasses information.

To indicate inheritance between classes:
  1. Locate the Inheritance Creation tool in the Java creation toolbar and click the tool twice. If you click a tool twice, you indicate that you want to use it several times consecutively.

  2. Select the first class, then a second class. An arrow indicating inheritance joins the two classes. You can repeat the operation as many times as you wish.

Your diagram should resemble the following illustration.



Actions