Skip to content

Instantly share code, notes, and snippets.

@ssukhpinder
Created May 24, 2021 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssukhpinder/91c9ca8d708f4e035b6d34197114c27d to your computer and use it in GitHub Desktop.
Save ssukhpinder/91c9ca8d708f4e035b6d34197114c27d to your computer and use it in GitHub Desktop.
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