PagamentoPayPal
This commit is contained in:
@@ -9,5 +9,14 @@ package pagamentionline;
|
|||||||
* @author Verde
|
* @author Verde
|
||||||
*/
|
*/
|
||||||
public class PagamentoPayPal {
|
public class PagamentoPayPal {
|
||||||
|
String emailUtente;
|
||||||
|
|
||||||
|
public PagamentoPayPal(double importo, String emailUtente) {
|
||||||
|
super(importo);
|
||||||
|
this.emailUtente = emailUtente;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String paga() {
|
||||||
|
return "Pagamento di " + this.importo + " euro effettuato tramite PayPal dall'account " + this.emailUtente;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user