Professional Documents
Culture Documents
SDlabexercise
SDlabexercise
interface Payment {
this.email = email;
this.password = password;
this.number = number;
this.pin = pin;
}
public void pay(double amount) {
class Cart {
this.amount = amount;
mode.pay(amount);
}
}