Created
December 3, 2023 07:08
-
-
Save isaacssemugenyi/e6fb44c1a3ac05732470f743d2e0f8f2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 MmPay implements Payment { | |
@Override | |
public void debitUser() { | |
System.out.println("Money deducted from user using MmPay"); | |
} | |
@Override | |
public void checkUserBalance() { | |
System.out.println("User balance checked using MmPay"); | |
} | |
@Override | |
public void creditUser() { | |
System.out.println("Account credited using MmPay"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment