Declaring an attribute as part of an interface is equivalent to declaring one or two accessor operations: one to retrieve the value of the attribute (a get or read operation) and (unless the attribute specifies read-only) one to set the value of the attribute (a set or write operation).
Attributes are declared as follows:
[ readonly ] attribute type-spec declarators;
where:
interface Goodbye: Hello { void sayBye(); attribute short xpos; attribute char c1, c2; readonly attribute float xyz; };
Attributes are inherited from base interfaces. An inherited attribute name cannot be redefined to be a different type.