Created
May 24, 2021 13:16
-
-
Save ssukhpinder/91c9ca8d708f4e035b6d34197114c27d 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 Bank1Factory : AccountTypeFactory | |
{ | |
public override ICurrentAccount CurrentAccountFactory(string message) | |
{ | |
return new CurrentAccount(message); | |
} | |
public override ISavingAccount SavingAccountFactory(string message) | |
{ | |
return new SavingsAccount(message); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment