Notes |
LZX is a fully object-oriented language. With object-orientation, you can encapsulate common code in reusable classes. This prevents code duplication and greatly facilitates the maintenance of your applications.
Creating classes with LZX is extremely easy: you use the <class> tag, provide the class with a name, and set a default
value for predefined attributes, like in the box example above. You can also
define your own attributes, events, and methods, as we will see in the following
examples. By creating a class, you automatically define a tag, such as <box>
in this example, that you can use anywhere in your
application.