“类图”和“对象图”的含义有所不同吗?Object-Graph和类图之间有什么区别?
0
A
回答
1
见本教程 http://www.cs.toronto.edu/~jm/340S/Slides6/ClassD.pdf
对象图包含一个实例的值类的看到example View其在一个特定时间点的对象系统的视图
而
类图as wiki
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
请参阅further
1
我同意上一篇文章,但希望补充一下,类图基于UML,它是由OMG赞助并由超过5百万用户所知的认可语言。因此,UML是基于您从中获得观点的模型的标准。
在UML 2中,如果与Java一起使用,则该类图很棒,因为在我看来,新规范与java项目具有完全相同的结构。它包含一个项目名称,包含包括分类器(例如Class,interface,enum)的包含属性的methode,包含属性的methode。
如果你不得不使用一个图,我会说使用类图。创建起来很容易,因为您不需要知道UML,并且可以将您的项目逆向工程化为模型并获得类图视图。我的类图就是魔术:-)
0
类图表示类的名称,它的属性和而对象图代表了类图的实例行为,对象图涉及的类图下
相关问题
- 1. “层”和“层”之间有什么区别?
- 2. Tableau和QlikView之间有什么区别
- 3. Microsoft.CompilerServices.AsyncTargetingPack和Microsoft.Bcl.Async之间有什么区别?
- 4. @Entity和@embeddable之间有什么区别
- 5. ContentObservable和DataSetObservable之间有什么区别?
- 6. touchmove和gesturechange之间有什么区别?
- 7. :notification.flags和notification.defaults之间有什么区别?
- 8. proc和lambda之间有什么区别?
- 9. :: after和after之间有什么区别?
- 10. read()和io.read()之间有什么区别?
- 11. Request()和Request.Form()之间有什么区别?
- 12. WebServiceBinding.EmitConformanceClaims和WebServiceBinding.ConformanceClaims之间有什么区别?
- 13. getA()和this.getA()之间有什么区别?
- 14. (int)和intval()之间有什么区别?
- 15. set_value和= pandas之间有什么区别
- 16. * zoom和zoom之间有什么区别?
- 17. {0}和“”之间有什么区别?
- 18. typedef和using之间有什么区别?
- 19. “”和“'之间有什么区别?
- 20. STDIN和tty之间有什么区别?
- 21. +和%之间有什么区别?
- 22. sysfs_create_file()和sysfs_create_group()之间有什么区别?
- 23. Lazy.Force()和Lazy.Value之间有什么区别
- 24. -existingObjectWithID:error:和-objectWithID之间有什么区别?
- 25. ReleaseFloatArrayElements和DeleteLocalRef之间有什么区别
- 26. AutomationProperties.AutomationID和AutomationProperties.Name之间有什么区别?
- 27. gets()和getc()之间有什么区别?
- 28. _id:ObjectID和String之间有什么区别?
- 29. @ResponseBody和HttpServletResponce之间有什么区别
- 30. PlaceboTransaction和TopLevelTransaction之间有什么区别
我还不清楚:( – pencilCake