Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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