summaryrefslogtreecommitdiff
path: root/DesignPatterns/src/app/DesignPatterns.Factory/RoyalBank/RoyalBankAccountFactory.cs
blob: 5a3c2a4a3eb560a071979ee3666e0a30c3cdab9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
using DesignPatterns.Test;

namespace DesignPatterns.Factory {
	internal class RoyalBankAccountFactory : IBankAccountFactory {
		public IBankAccount CreateChequingAccount( ) {
			return new RoyalBankChequingAccount( );
		}

		public IBankAccount CreateSavingsAccount( ) {
			return new RoyalBankSavingsAccount( );
		}
	}
}