UML class diagram relationships include association, aggregation/combination, dependency, and generalization (inheritance ). The Association is divided into two-way Association, one-way Association, and self-Association. Let's take a look at what these relationships are and what their differences are.
1. Association
Bidirectional Association:C1-C2: both parties know the existence of the other side, can call
UML class diagram relationships include association, aggregation/combination, dependency, and generalization (inheritance ). The Association is divided into two-way Association, one-way Association, and self-Association. Let's take a look at what these relationships are and what their differences are.
1. Association
Bidirectional Association:C1-C2: both parties know the existence of the other side, can call
this time our group chooses the practice project is the Library management system, the main function is realizes the user login page as well as the simple dialogue function, therefore the function is relatively simple, this practice project mainly has five business class and a test class, the business class includes the user
class to know the properties and methods of another class, such as: teachers and students, the relationship between husband and wife can be two-way or one-way. Two-way associations can have two arrows or no arrows, and one-way associations have an arrow.
"Code embodiment": member variable
Arrows and points: solid lines with normal arrows, pointing to the owner
Java Tour (ix)--object class, Equals,tostring,getclass, inner class access rule, static inner class, Inner class principle, anonymous inner class
Every day by some trivial harassment, learning to continue
I. Object
Tags: blog HTTP ar Java SP strong on art log
Original
Inheritance: Solid line of the hollow triangle arrow. The Child class points to the parent class. Common keywords in code are extends (Java ).
Implementation: Dotted line of the hollow triangle arrow to implement
Class encapsulation verification diagram how to output + JS this is a class encapsulation verification diagram my question is how to call it PHPcode lt; on another page ;? PhpclassImageCode {private $ randcode; random character private $ randcodeleng class encapsulation ver
Class encapsulation verification diagram how to output + JS this is a class encapsulation verification diagram my question is how to call it PHPcode lt; on another page ;? PhpclassImageCode {private $ randcode; class encapsulation verification
0. Preface Java virtual machines, like real computers, perform binary machine codes, and we compile. Java source code into a. class file, and the class file is the binary machine code that the
What is a simple Factory mode:By defining a class specifically, you are responsible for creating instances of other classes that typically have a common parent class. UML class diagram for simple Factory mode: The roles contained in the Simple factory model and the corresponding responsibilities are as follows: Factory
Recently, when using PD, I encountered a problem, that is, the class field, method, and type in Excel. I want to import it to PD and generate a class diagram directly. There are many ways to generate entity tables on the Internet, so I wrote a class graph generated by myself. The tool in Pd-extension-script, or press S
WPF core object model-class diagram and parsing, wpf Object Model
DispatcherObject is a base class. by inheriting this class, you can obtain the Dispatcher object that accesses the UI thread that creates the object. Through the Dispatcher object, you can merge the code seg
Blog Park Flash Home new essay contact management subscribe Essays-295 Articles-111 reviews-6633 STARUML---Recommend a uml tool (very good very strong)
Last week a friend of mine, who is also a colleague of the company, recommended a UML tool for me to start using, but the more I used it, the more I felt good,
I even want to delete the rose on the machine, directly with this software, I heard that this software is a Korean to write with Delphi, support
UML2.0.
The following is a few of my occa
Dispatcherobject is a base class that, by inheriting the class, can gain access to the dispatcher object that creates the UI thread of the object. With the Dispatcher object, you can incorporate code snippets into the UI thread execution. DependencyObject is the core base class for implementing a dependency property me
~://System.out.println ("Please enter a string:"); while (true) {// String line = S1.nextline ();// if (line.equals ("End")) SYSTEM.OUT.PRINTLN ("You entered is:" + line); // } }Run:4) Enter the command line via args:We all know that the main () method has one parameter:string[] args, which we can pass in the commandInput parameters, and then directly in the main program Args[i] to visit:Example code:public
The concepts and symbols of dependency relations
dependencies represent a class that relies on other classes in some way. When two classes are in a dependency relationship, the change of one of the classes may affect another class.
Symbol:
The performance of dependencies in code
In program code, a dependency mean
Dependent DependencyClass car{}class person{ int A; static int b public void Buy (Car c) { int c; .... }}A class is a parameter of a method that has a class, or a local variable, or a static method call, and so on.In addition, there are two kinds of variables: local variables, member variables.The variable defined in a method is a local variable
The Concept of association
An association is used to represent a structural relationship between objects of two or more classes, which is represented in code as a class that contains the application of one or more objects to another class as a property.
Program Demo: Association relationship (Code/assocation)
Suppos
the train, the driver only operates the train, the actual internal or by the train braking system to force the train to stop; people close the door instead of people, imagine if the door does not have a rotating shaft you can not shut it, or the process of the encounter obstacles you can not shut it.
3. Class Diagram
Drawing is very helpful in understanding and analyzing problems, do you have a better way
Schematic diagram of the Java Virtual Machine ---- JVM runtime data zone, virtual machine ---- jvm
JVM Runtime data zone (JVM Runtime Area)In fact, it refers to the division and allocation of computer memory space during JVM running. This article will discuss the JVM runtime data zone through the following topics.
Topic 1.JVM runtime data ZoneIn what?
Topic 2.Virtual Machine StackWhat is it?Virtual M
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.