Attributes have in general promitive types. Attribute specification: text : String Method specification: getMessage(index : int) : Message If too many attributes, group into classes (e.g. Address class).
text : String
getMessage(index : int) : Message