
attribute
An object data member, and its accessors.
Syntax
[readonly] attribute param_type_spec simple_declarator;
Description
In an entity, the attribute defines a data member, a set accessor and a get accessor. In an interface, the attribute exposes those same accessors. readonly may only be specified in an interface. If the attribute is readonly in the interface, only the get accessor is exposed.
Attributes are inherited. To expose the attribute in the interface, it must match the attribute in the entity in both name and type.
Attributes cannot be structs or arrays. However, user-defined types defined as structs or arrays can be attributes.
When an object is created, the values of its attributes are undefined.
Warnings
Example
attribute long timeGreen; attribute LightColor colorTarget;See also
|
Kabira Technologies, Inc. http://www.kabira.com Voice: (415) 446 5000 Fax: (415) 446 5199 |