Click to See Complete Forum and Search --> : class diagram


ajkiwi88
08-23-2007, 05:55 AM
i need to do a class diagram for a program i have written but dunno how to.... i have got all the java classes listed but then the atribrutes are they every single subclass? or somat else?

thanks for any help
cyaz
andy

shimms
09-05-2007, 07:15 AM
Attributes generally refer to those variables declared at a class level. IE a Person class which has the string attributes "name", "address" would look like:

Person
---------------
name : string
address : string

If it has methods to get and set the attributes:

Person
---------------
name : string
address : string
---------------
setName(string) : boolean
getName() : string

Hope that helps,