「クラス図」と「オブジェクトグラフ」の意味に違いはありますか?
1067 次
3 に答える
1
以前の投稿に同意しますが、クラス図は、OMGが後援し、500万人以上のユーザーに知られている認定言語であるUMLに基づいていることを付け加えたいと思います。したがって、UMLは、ビューを取得するモデルに基づく標準です。
UML 2では、新しい仕様がJavaプロジェクトとまったく同じ構造を持っているように見えるので、Javaで使用すると、クラス図は素晴らしいものになります。プロジェクト名が含まれ、属性を含む分類子(Class、interface、enumなど)、プロパティを含むメソッドを含むパッケージが含まれます。
1つの図だけを使用する必要がある場合は、クラス図を使用します。UMLを知る必要がなく、プロジェクトをモデルにリバースエンジニアリングして、クラス図ビューを取得できるため、簡単に作成できます。私のクラス図はただの魔法です:-)
于 2011-09-30T12:01:25.083 に答える
1
このチュートリアルを参照してください http://www.cs.toronto.edu/~jm/340S/Slides6/ClassD.pdf
オブジェクト グラフには、クラスの 1 つのインスタンスの値が含まれます。例を参照してください。特定の時点でのオブジェクト システムのビューを表示します。
その間
ウィキとしてのクラス図
The class diagram is the main building block of object oriented modelling. It is used both for general conceptual modelling of the systematics of the application, and for detailed modelling translating the models into programming code. Class diagrams can also be used for data modeling.[1] The classes in a class diagram represent both the main objects and or interactions in the application and the objects to be programmed. In the class diagram these classes are represented with boxes which contain three parts: [2]
A class with three sections.
The upper part holds the name of the class
The middle part contains the attributes of the class
The bottom part gives the methods or operations the class can take or undertake
さらに見る
于 2011-09-30T08:23:30.830 に答える