

class Super {
	private int i;
	private String s;
	private float f;

	public Super(int i, String s, float f) {
		this.i = i;
		this.s = s;
		this.f = f;
	}

	public int getI() {
		return i;
	}

	public String getS() {
		return s;
	}

	public float getF() {
		return f;
	}

	@Override
	public String toString() {
		return String.format("%d,%s,%f", i, s, f);
	}

/*	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof Super)) {
			return false;
		}

		Super that = (Super) obj;

		return this.i == that.i;
	}
*/

/*	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof Super)) {
			return false;
		}

		Super that = (Super) obj;
	
		return this.s.equals(that.s);
	}
*/

	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof Super)) {
			return false;
		}

		Super that = (Super) obj;

		return (this.s.equals(that.s) && 
			this.i == that.i &&
			this.f == that.f);
	}	
	

}
