package TPnote;

public class Residence extends Habitation{

	private boolean Jardin;

	public Residence(String adresse, double surface, int prix, boolean jardin) {
		super(adresse, surface, prix);
		this.Jardin=jardin;
	}
	
	public boolean isJardin() {
		return Jardin;
	}
	
	public String toString() {
		String bool;
		if (this.isJardin()) bool="Avec";
		else bool="Sans";	
		return "Residence\n"+super.toString()+" ("+bool+" Jardin)";
	}

}
