Java Cart .

Java Cart Category java

package cart;

//Category
//author - Lawrence Truett - FluffyCat.com
//date - May 20, 2003 - San Diego, CA
public class Category {
    private long key;
    private long parent;
    private String description;
    
    public Category(long key, long parent, String description) {
        this.key = key;
        if ((key == 0) && (parent == 0)) {
            //root
        } else {
            this.parent = parent;
        }
        this.description = description;
    }
    
    public long getKey() {return key;}
    public long getParent() {return parent;}
    public String getDescription() {return description;}
}
To download source right-click here and "Save As...".
Comments
Sign in to be the first to comment on Java Cart Category java.