【问题标题】:Do class properties count as attributes or methods on a class diagram?类属性是否算作类图上的属性或方法?
【发布时间】:2012-10-15 05:03:02
【问题描述】:

这里的例子:

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

【问题讨论】:

    标签: oop uml class-diagram


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-02-22
      • 2023-02-08
      • 2016-04-16
      • 1970-01-01
      • 1970-01-01
      • 2023-03-19
      • 2016-09-22
      • 1970-01-01
      相关资源
      最近更新 更多