Oop 类属性在类图上算作属性或方法吗?

Oop 类属性在类图上算作属性或方法吗?,oop,uml,class-diagram,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是类,一个是属性,但是mypr

示例如下:

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呢?

我认为“一”只是一个实现细节,不应该出现在UML中。您只需要一个UML类“myclass”和一个UML属性(您命名的属性)“myproperty”。

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