
class Bear {

	private int height = 0;
	private int weight = 0;
	private String furColor = null;
	private String name = null;

	public Bear(int h, int w, String fc, String n) {
		this.height = h;
		this.weight = w;
		this.furColor = fc;
		this.name = n;
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int w) {
		this.weight = w;
	}

	public String toString() {
		return "Hello, my name is " + name;
	}

	public boolean equals(Object obj) {
		if(!(obj instanceof Bear)) {
			return false;
		}

		Bear temp = (Bear) obj;

		return (this.name.equals(temp.name) && 
			this.furColor.equals(temp.furColor));
	}

}
