Using the override view

If you would like to derive a new class or package from an existing one you perform the following three steps:

  1. Click the "New class" button Interface or "New package" button Package, respectively, on the declaration bar and fill in the little form that is popped up then. You may in particular specify one or several parent classes or packages whose features and virtual types your new class or package shall inherit.
  2. Subsequently you may override the inherited features or virtual types: Select the new class/package in the declaration tree and click the "Show overridables" button Open override view. This opens the "override view" in the right-hand part of the tree view window. The override view depicts the entire heritage of the new Interface/package and indicates from which base class/package the respective feature or VT originates. You may then select individual features or virtual types (or several at once, using the Shift or Control buttons in the usual way) and cause them to be overridden in the new class or package by clicking the "Override" button Override feature or VT. The overridden features/VTs appear as parts of the new class/package thereafter, and you may open their respective property sheets (using double-click or Open property sheet) in order to actually modify their properties.

    Since LavaPE release 0.9.1 a VT may be declared "final". This means that it cannot be overridden in a derived class or package. The "Override" button Override feature or VT is disabled for "final" VTs.
  3. Add new features or VTs to the new class, or new VTs, classes, or nested packages to the new package, if required.

(The order in which you add and override features, VTs, etc. doesn't matter, of course.)