SleepyEgg

Tech News, Deals, & Games

  • Increase font size
  • Default font size
  • Decrease font size
Home News Tech News UML - Class Diagram

UML - Class Diagram

E-mail Print PDF
Class diagram describes the relationships between classes. A Class is type of an instance object. Instance object of a specific class will follow the behaviors we have set for that class. That is OOP, baby! There are many types relationships that a class can have with other classes. These relationships are guarded by rules. Rule can be a set of standard rules or user specified rules. Lets talk about relationships guarded by set of standard rules: 1. Association 2. Aggregation (Association + more rules) 3. Compostion (Aggregation + more rules) Exaple of Association: 'a customer places an order.' customer is a type of object (class). order is another type of object place order is an 'action' that creates an relationship (link) betwen the two classes. Rules: 1. How many orders can a customer place? Rule says: 0 to infinite 1. Can an order be placed by how many customers? Rule says: 1 and only 1 [>:)'> Now here is the clasess with summarized rules: customer (1..1) -------place order ------- (0..infinite) order Share Link:
Bookmark Google Yahoo MyWeb Del.icio.us Digg Facebook Myspace Reddit Ma.gnolia Technorati Stumble Upon
Comments (0)Add Comment

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
smile
wink
laugh
grin
angry
sad
shocked
cool
tongue
kiss
cry
smaller | bigger

security code
Write the displayed characters


busy
 

Polls

Which is your favorite Game Console?
 

Login

               No account yet?