Game Development Reference
In-Depth Information
Figure 9.2 Depiction of the façade pattern.
One benefit of this pattern is that classes in a subsystem are decoupled from the
client interface, causing the architecture to be more portable and maintainable.
Additionally, using the façade pattern reduces component dependencies, which
can dramatically reduce compilation times of large software projects.
The following code shows how to implement the façade pattern in C#:
private class SubSystem1
{
public void DoSomethingSpecific()
{
MessageBox.Show(“Hello World #1”);
}
}
private class SubSystem2
{
public void DoSomethingSpecific()
{
MessageBox.Show(“Hello World #2”);
}
}
Search Nedrilad ::




Custom Search