<<< UML diagramming notes | Index | The "setter" and "getter" methods >>> |
public class Product { // the instance variables private String code; private String description; private double price; // the constructor public Product() { code = ""; description = ""; price = 0; } }
<<< UML diagramming notes | Index | The "setter" and "getter" methods >>> |