public class CompteEpargne extends CompteEnBanque {
	private double prime;
	public CompteEpargne(String n, Personne t, 
			double s, double tx, double prime){
		super(n,t,s,0,tx);
		this.prime = prime;
	}
	public CompteEpargne(String n, Personne t, double prime){
		super(n,t);
		this.prime = prime;
	}
	public double getPrime() {
		return prime;
	}
	public void setPrime(double prime) {
		this.prime = prime;
	}
	public void calculInterets(){
		super.calculInteret();
		System.out.println("Oui mais je suis un compte épargne et j'ajoute la prime d'accroissement...");
		this.depot(prime);
	}
	public String afficheToi(){
		String s = "Je suis le compte épargne n°"+this.getNumero()+
		" de M. "+this.getTitulaire().getNom()+
		" et mon solde est de "+this.getSolde();
		System.out.println(s);
		return s;
	}
}
