/*
 * This File is one of the examples from Java Object Oriented Programming
 * Do not reproduce this code for others or use it in a commercial setting without prior permission from the author.
 */

package products;

/**
 *
 * @author Matthew Gregory
 * @website www.matthewgregory-author.com.au
 *
 */
class Description {
    public int height;//height (or length) in cm
    public int weight;//weight in grams
    public String country;//Country of manufacture
    public String comments;//General comments about the product.
    
    //Add two constructors, one with all the fields, the other with just the comments
    Description(String comment, String country, int height, int weight){
        //Use chaining
        this(comment);
        //Populate the fields
        this.country=country;
        this.height=height;
        this.weight=weight;
    }
    public Description(String comment){
        this.comments=comment;
    }
    public Description(){
    }
}
