In the introductory sections of this chapter, we have already discussed TDL as an object-oriented language. We will now look at the TDL elements involved in more detail.
You already know how to create a TDL class definition: this is done by defining an element with the name
element, where the
name attribute is the name of the class.
All the elements that define the state and behavior of a TDL class are defined using child tags of the
In TDL, you use
property elements to the define the state of an object. We have seen the
attribute element that may seem similar to a
property. However, attributes and properties are not the same:
An attribute is always of type string and ...