An interface can have both methods and attributes.
Attributes are properties of interface objects, which can be read and optionally set.
An attribute name foo generates accessor methods GetFoo and SetFoo . Notice that the first letter of the attribute is changed to uppercase for the accessor method. The use of native types is also possible, though this may limit scriptability. However, using native types in a method will mean that method is not scriptable. Constants must be of type short or long , and must appear inside an interface declaration.