Before learning UML class diagrams, recommend a good website with lots of open source projects: Http://www.oschina.net/project.
Also recommend an open source project: STARTUML, all of the following class diagram and the diagram between the classes are drawn with STARTUML.
Let's take a sample before learning UML:
Comments:
Class First line: Class name Second line: Attribute (field or property) Third line: Action (method or behavior) Note: If the class name is italic, this class is an abstract class |
Interface Lollipop notation Interface name next to circle Interface methods appear in the class implementation |
Interface Rectangular notation with "interface" at the top First line: Interface name Second line: interface method |
Note the methods of each class and the symbols in front of the fields The + sign indicates that the public,-number is private, #表示protected |
Http://www.uml.org.cn/oobject/201104212.asp
Http://www.cnblogs.com/ywqu/archive/2009/12/06/1618184.html
UML Class Diagram