类属性是否被视为类图上的属性或方法?

时间:2012-10-15 05:03:02

标签: oop uml class-diagram

此处示例:

Public Class myclass
 Private one As Integer
 Public Property myproperty() As myproperty
    Get
        Return one
    End Get
    Set(ByVal value As myproperty)
        one= value
    End Set
 End Property
End Class

我理解myclass是类,一个是属性,但myproperty怎么样?

1 个答案:

答案 0 :(得分:1)

我会说'one'只是一个实现细节,不应该出现在UML中。你只需要一个UML类'myclass'和一个UML属性(你命名的属性)'myproperty'。

相关问题