Façade Pattern Code Review

Define the SubSystem Objects

Code Review

Code Walkthrough

The BankSystem class (object), CreditSystem class (object) and the LoanSystem class (object) represent the defined high-level systems (objects).

class BankSystem { public bool HasSufficientSavings(String customerID) { Console.WriteLine(String.Format("Checking banking system for {0}.", customerID)); return true; } } class CreditSystem { public bool HasGoodCredit(String customerID) { Console.WriteLine(String.Format("Checking credit system for {0}.", customerID)); return true; } } class LoanSystem { public bool HasNoBadLoans(String customerID) { Console.WriteLine(String.Format("Checking loan system for {0}.", customerID)); return true; } }