Last active
May 30, 2020 18:14
-
-
Save gauravat16/ce0aae0f2a639c61738e4e4b4a357c44 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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