package example.cloning;

public class Weapon implements Cloneable {
	String name;
	int attack;
	// A shallow copy is enough here, because the attributes are either immutable or a primitive type.
	public Object clone() throws CloneNotSupportedException {
		return super.clone();
	}
	public Weapon(String name, int attack) {
		this.name = name;
		this.attack = attack;
	}
}
