<defclass TagName >< inherit ClassName1, ... > heitml </defclass> |
Purpose: The defclass tag defines
a class. Note that most classes are defined using the def or
defenv tags. defclass defines a class without
defining a constructor method. This is useful in two cases
Defclass defines a new class. The class inherits methods and constructors
according to the normal inheritance rules.
If the class inherited a constructor defined by a def tag,
then the class acts as a class defined by a def tag.
If the class inherited a constructor defined by a defenv tag,
then the class acts as a class define by a defenv tag.
If the class did not inherit any constructor, no objects of the class
can be created.
For a description of the inherit tag,
see the inherit tag.
- To define an abstract class, that is used only to inherit
from. An abstract class does not have a constructor. Consequently no objects
of that class can be created.
- The newly defined class inherits the constructor according to the
normal inheritance rules. This is useful in case an existing class should be
extended or modified by inheriting it, without modifying the constructor.
Please note, that the parameter list and any properties defined by defwysiwyg or defhtml belong to the constructor and are
inherited together with the constructor.
See Also: def, defenv, inherit.
<defclass myButton><inherit iaButton>
<def process x>
A sample environment definition is as illustrated above.
It defines a class named myButton that works just as an
iaButton but overrides the process with another
method to be performed.
This page was dynamically generated by the
web application development tool RADpage
H.E.I. provides support, tools, and services like
Webdesign in Mannheimm,
the HTML/CSS 3D WebGL Animation Library taccgl,
3D Webdesign, and
3D Product Configurator
(3D Produkt Konfigurator in German).
Selected blog articles :
3D Objects on HTML pages,
CSS Transition Visibility, and
CSS Transition Display.
© 1996-2023 H.E.I. All Rights Reserved.