__________________________________
            Product
__________________________________
-code: String                     }
-description: String              } //Fields  
-price: double                    } 
__________________________________

+setCode(String)                  }
+getCode(): String                } 
+setDescription(String)           }
+getDescription(): String         } // Methods
+setPrice(double)                 }
+getPrice(): double               }
+getFormattedPrice(): String      } 
__________________________________

*******************************************************

Description:

1. The fields of a class store the data of a class.

2. The methods of a class define the tasks that a class
   can perform. The way to work with fields.

3. Encapsulation is one of the fundermental concepts
   object-oriented programming. This means that the 
   class controls which of its fields and methods can 
   be accessed by other classes.

*******************************************************

UML diagramming notes:

* UML(Unified Modeling Language) is the industry 
  standard used to describe the classes and objects of
  an object-oriented application.

* The minus sign (-), marks the fields and methods
  that can't be accessed by other classes, while the
  plus sign (+), marks the fields and methods that 
  can be accessed by other classes.

* Each field follows by a colon

* Each method follows by a set of parentheses.


*******************************************************   

For example:
Site hosted by Angelfire.com: Build your free website today!