punjabtechnicaluniversity.blogspot.in
Façade pattern sits on the top of lot of subsystems and makes access easy to interfaces of these subsystems. Basic purpose of Façade is to make interfacing between many modules and classes manageable.
Façade in action
Above is a simple live application of a Façade class. In this we have four subsystems :-
1.Customer
2. Product
3.Payment
4.Invoicing
All the four modules when built at initial stage where built completely independent. The main interaction between all these subsystems is customer placing order. This functionality can be attained by using all these subsystems, which involves complex interaction between them.
There’s where FAÇADE comes in to action. We have built a FAÇADE called as “FACADEORDER” which sits on the top of all these subsystem and fulfills our functionality.
0 comments:
Post a Comment
North India Campus