Skip to content

Instantly share code, notes, and snippets.

@gauravat16
Last active May 30, 2020 18:14
Show Gist options
  • Save gauravat16/ce0aae0f2a639c61738e4e4b4a357c44 to your computer and use it in GitHub Desktop.
Save gauravat16/ce0aae0f2a639c61738e4e4b4a357c44 to your computer and use it in GitHub Desktop.
public class GatewayServer extends Server {
private double ratio;
private PaymentGateway gateway;
public GatewayServer(String host, int port, double ratio, PaymentGateway gateway) {
super(host, port);
this.ratio = ratio;
this.gateway = gateway;
}
public double getRatio() {
return ratio;
}
public void setRatio(double ratio) {
this.ratio = ratio;
}
public PaymentGateway getGateway() {
return gateway;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment