Façade Pattern Code Review
Define the SubSystem Objects
Code Review
- Façade Pattern Code Review: Define the Façade Object
- Façade Pattern Code Review: Define the SubSystem Objects
- Façade Pattern Code Review: Use the Façade Pattern
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;
}
}
Printer Friendly Version
Add to Favourites
DotNet Kicks
Digg
del.icio.us
Live Favourites
ma.gnolia
reddit
Slashdot
Technorati
Yahoo!