22 lines
596 B
Java
22 lines
596 B
Java
/*
|
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
|
*/
|
|
package pagamentionline;
|
|
|
|
/**
|
|
*
|
|
* @author Verde
|
|
*/
|
|
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;
|
|
}
|
|
} |