

class Sub extends Super {

	private boolean b;

	public Sub(boolean b, int i, String s, float f) {
		super(i, s, f);
		this.b = b;
	}
	
	public boolean getB() {
		return b;
	}

	@Override
	public String toString() {
		return String.format("%b,%s", b, super.toString());
	}

	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof Sub)) {
			return false;
		}	
	
		Sub that = (Sub) obj;
	
		return (super.equals(that) && this.b == that.b);	
	}
}
