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 (
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 illustr
The array declaration must be assigned a space with newThere is no length () method in the array in Java, so the lengths of the array can be used in the array.
12
int[]arr={1,2,3,4,5};intlength=arr.length;//求数组的长度
String has the length () method, which is used to find the lengths of the strings
12
Stringstr="Hello";intlength=str.length();//求字符串的长度
UML
Design Mode: Why does Java development require UML-general Linux technology-Linux programming and kernel information? For details, see below. Do you know what kind of situation the UML has caused? Do you know what types of functions are available in UML but not in JAVA? Do y
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
Do you know what the situation in UML is causing chaos? Know what kind of functionality is available in UML but not in Java? Do you know why we need another computer language other than Java? UML is not just a substitute for Java
in the problem domain and can be obtained by direct analysis. For example, the tyre is part of the car, the leaves are part of the tree, the hands and feet are part of the body of this relationship, very obviously the whole-part relationship.Several of these relationships (associations, aggregates/combinations, dependencies) may appear in the code as pointers, references, values, and so on in another class, not in form, but logically they are differe
1. Inheritance relationship (generalization relationship)
Description: The inheritance relationship is a subclass (derived class) that inherits the parent class (the base class), or the child interface inherits the parent interface's relationship. The subclass object "is a" parent object, such as a bird is an animal.
"UML Diagram":
Diagram: Animal is the par
=" Wkiol1gv9ckai8qoaaazi6hkct8925.png-wh_50 "/>From what we see, Samsung, Apple, Nokia are mobile phones, so is the inheritance relationship (with "is-a" to express the relationship), but we will find Samsung and Apple phones and play games and movies, since all have, in order to reduce the amount of code, we can pull them out, But after extracting it can not redefine a class, because playing games and watching movies only two methods, there is nothin
YesWhat is the big chaos caused by UML? Do you know what types of functions are available in UML but not in JAVA? Do you know why we need another computer language besides JAVA? UML is not just a substitute for JAVA or other langu
Java exception architecture diagram and several interview questions, java architecture diagram questions
1. java exception Architecture
The pink ones are checked exceptions, which must be captured by the try {} catch Block or declared by the throws clause in the method sign
Using Uml-to-java transformations in various versions of IBM Rational Software architect and related software
Introduction: This article shows how to apply the Java transformations included in the Ibm®rational®software Architect for interactive development in the context of the Design Contract Management Protocol (designing contract management Protocols). These
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
modified if there is any discomfort. So the whole modeling process is a iterative process of "top-down modeling, bottom-up modification". In short, the flexible software development process is a demand-driven, top-down hierarchical refinement modeling, and then "T-type technology", through the virtual implementation of the model, from the bottom up to the level of the layer up to change, until the simulation results of each layer to meet the demand.
Fig. 1 Flexible Software development mod
Introduction: This is the PHP generated by powerdesigner.CodeThe details page of UML describes PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 335106 'rolling = 'no'>
With the popularization of team development, more and more friends are using powerdesigner for
variable name and its class type in the box in the horizontal axis direction, as shown in Figure 2. This form does not include loops, conditions, and branches that are common in conventional forms. In the actual control process in the system, some assertions made during the interaction may be false. If the assertion is found to be false, all messages in the instance sequence diagram are empty, and this situation will not occur. An instance sequence
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 c
is equivalent to the specific processing workshop. The workshop depends on the machine for processing, function. Interface Factory {operation createoperation (); // directly reference the operation class to define the specific implementation method;} class AddFactory: Factory {public operation createopreation () // similar to rewriting {return new operationAdd (); // call a specific machine directly through an interface (specific operation class) methods} [inherit VS associated VS dependency] i
What is a class?
You can combine a certain type of things into a class.
Class has many refining perspectives. You need to select appropriate perspectives based on the system objectives and business scenarios to summarize things.
What is a class chart?
A Class Diagram may be the most commonly used in UML.
Like other charts, the basic syntax of a class chart is not complex. It may take a day or two to grasp i
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.