(Henderi, 2008)
Class Diagram is a diagram that shows the existing classes of a system and is associated with logic. Class diagrams describe the static structure of a system. Because the class diagram is the basis of almost all the power of object-oriented method including UML.
(Jeffrey L. Whitten et al 2004:432)
Class diagram is a graphic picture of a static object structure of a system, showing object classes that make up a system and also the relationship between object classes.
Class diagram is used to show some class and package diagrams that exist in the system or software that we use. Class diagram gives us a picture (static diagram) of the system or software and the relationship that is in it.
Elements-elements relevant in modeling UML class diagram consists of :
- Classes
- Class structure
- Class behavior
- Association
- Aggregation
- Dependency
- Derivatives relations
- Diversity and navigation indicators
- Role / Task name
- Class
Class is a block - a block object. A class-oriented programming is described as a box that is divided into 3 sections. The upper part is a part of the class name. Defines the center of the property or attribute class. The final section defines the method of the class.
- Association
In my post this time I will give you some ideas on how to use the class diagram in the depiction of the use of blogs. On previous occasions I have explained about the depiction usecase diagram with the theme of the blog system, here I developed this analogy by using a class diagram.
example :
In the class diagram is formed, there is a class 5 object. As for the class that is formed is manage profile, manage posts, manage comments, manage templates, and moneytize blog.
Each class has a method that can be used to communicate in the implementation phase. As for the methods that are owned respectively - each class as follows:
- Manage Profile (add_profile, edit_profile)
id_profile, nama_profile, email, set_idprofile, set_namaadmin, get_namaadmin
- Manage Post (add_post, edit_post, delete_post, view_post)
- Manage Template Blog (edit, cadangkan, pulihkan)
- Manage Comment (addcomment, viewcomment)
- Moneytize Blog (approveiklan)
0 komentar:
Posting Komentar