language interpretation, you can not say the clear. Of course, after a few years of development, you may also be able to slowly feel the object-oriented thinking.This time I write this blog will take the object-oriented thinking as the main line, through the UML Software engineering method, the Java language is introduced therein. From this blog, you will learn about object-oriented thinking, software engi
UML has become the standard graphical tool of object-oriented design, in the various graphs of UML definition, this article only involves class diagram. Java applications are composed of many classes, and the design and implementation of class diagrams is the core of Java implementation object-oriented applications. Th
Class diagrams are the most common UML diagrams used to describe the structural design of a system. These include class relationships and the properties and behaviors associated with each class. Class diagrams can represent an excellent representation of inheritance and composition relationships. To use the class diagram as an efficient communication tool, the developer must understand how to convert the elements appearing on the class diagram into
In the first part, we implement five classes. This section describes how to use UML class diagrams to design the remaining classes. To reduce the length, this section focuses on UML class diagrams and applications, and does not describe the Java implementation code in detail.
Vi. cgpoint classThe cgpoint class illustrates how to use a non-abstract class to exten
1. UML ConceptsUnified Modeling Language (UML)Also known as Unified Modeling Language or standard modeling languageis a graphical language that supports modelling and software system development2. UML diagram14 diagrams (diagrams) are defined in UML2.2Common illustrations2.1. Use case diagram (Diagram)Use case diagrams can visualize how systems meet the business
The UML diagram and code expression of the relationship between classes and classes in java. If you need it, refer to it. There is a relationship between the class and the class:
Generalization)
Dependency)
Association)
Aggregation)
1. Generalization)
Definition:Represents the inheritance relationship between classes, the inheritance relationship between interfaces, or the Implementation relations
Eclipse Plugin amaterasuml (: https://zh.osdn.net/projects/amateras/releases/#21568) Unzip and put it under the Plugins folderInstall the GEF prior to installing AMATERASUML (Eclipse Online installation, reference: http://www.cnblogs.com/xiluhua/p/6667935.html)Eclipse-file-new-other still does not appear amaterasumlThe workaround is: (Ref.: http://www.cnblogs.com/lost-in-code/archive/2012/12/11/2812357.html)1. Open the command line to the current Eclipse directory, enter Eclipse-clean, and resta
Amaterasuml:Http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi? Page = amaterasumlHttp://marketplace.eclipse.org/content/AmaterasUML
Supported: class diagram, sequence diagram, and use case diagramYou can generate a UML class diagram from the Java source code or a Java source code from the UML class diagram.
array when referencing tire.5. Synthetic relationship (composition) Note that the solid Diamond + solid Line (arrow) is used to connectThe synthesis relationship is stronger than the aggregation relationship, is a strong ownership relationship, embodies the strict relationship between the whole and the part, it requires that the general aggregation relationship represents the whole object is responsible for representing the life cycle of the part of the object, or their life cycle.class bird{
MyEclipse Java code into UML class diagrams1, right click on the project name, select New-------àuml2 Model2. Give class diagram a name3. Class Diagram1) If you want to map the entire project into a class diagram, drag the entire project into the class diagram2) If a single class is to be directed into a class diagram, drag a single Java class onto the class diag
In the first section, we implemented 5 classes. In this section, we then show you how to use UML class diagrams to design the remaining classes. To reduce space, this section focuses on UML class diagrams and applications, the Java implementation code is no longer described in detail.
Six, Cgpoint class
The Cgpoint class illustrates how to extend an abstract cl
smartphones and non-smartphones, and smartphones have samsung, Apple and Huawei. Non-smartphones have Oppo,nokiathus, It can be seen that their relationship is:650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/8A/3B/wKiom1grD5yBemvCAAAxj3DtdXE582.png-wh_500x0-wm_3 -wmp_4-s_1687420851.png "title=" class2.png "alt=" wkiom1grd5ybemvcaaaxj3dtdxe582.png-wh_50 "/>Code example:/** * @author LeiGao24 * @data 2016.11.15 * mobile--phone * Smartphone---zhineng * Non-smartphone-feizhineng */class
smartphones and non-smartphones, and smartphones have Samsung, Apple and Huawei. Non-smartphones have Oppo,nokiaThus, it can be seen that their relationship is:650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8A/3B/wKiom1grD5yBemvCAAAxj3DtdXE582.png-wh_500x0-wm_3 -wmp_4-s_1687420851.png "title=" Class2.png "alt=" Wkiom1grd5ybemvcaaaxj3dtdxe582.png-wh_50 "/>code example:/** * @author LeiGao24 * @data 2016.11.15 * Mobile--phone * Smartphone---zhineng * non-smartphone-Feizhineng */class
I. object-oriented technology and UML language
Different from the traditional structured software development technology, object-oriented technology is proposed, such as encapsulation, inheritance, polymorphism, object covering and so on, and traditional program representation methods (such as block diagram, NS diagram, etc.) cannot describe the new object-oriented features. Therefore, the expression of object-oriented technology and the methodology
Turn from:http://justsee.iteye.com/blog/853546Body:1, right click on the project name, select New-------àuml2 Model2. Give class diagram a name3. Class Diagram1) If you want to map the entire project into a class diagram, drag the entire project into the class diagram2) If a single class is to be directed into a class diagram, drag a single Java class onto the class diagram4. Right click on the class diagram and select Export All Diagrms5. Click Brows
[From frenzied, a Java developer]
A link is a link between things. There are four important relationships between classes: dependency, generalization, association, and implementation. These relationships can be mapped to the code.
Dependency is a usage relationship. Changes that describe the specification of a thing may affect another thing that uses it (and vice versa ). In UML, it is represented as a dott
components are typically packaged into Jar,war packages. Component diagrams are used to represent dependencies between components.
Deployment diagram
Sequence diagram: Shows the detailed process of the specific use case, and shows the invocation relationship between the different objects in the process, and the sequence diagram describes the interaction between the objects (the sequence diagram and the communication diagram are called interaction diagr
1. When you make a graph, you can imagine that your code is extremely important. We use graphs as a shortcut to understand the code, rather than replacing the code. If you draw a picture but cannot imagine what code it represents, you are building a castle in the air. Stop what you are doing and think about how to convert it into code. Do not draw pictures for purpose. You must always remember that the code is what you want to do.
---Designers evolved from coder, coder experience (code --> repet
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.