Facade ਪੈਟਰਨ ਇੱਕ ਗੁੰਝਲਦਾਰ ਸਬਸਿਸਟਮ ਦੇ ਲਈ ਇੱਕ ਸਾਦਾ ਇੰਟਰਫੇਸ ਪ੍ਰਦਾਨ ਕਰਦਾ ਹੈ — ਇਸ ਦੀ ਜਟਿਲਤਾ ਨੂੰ ਇੱਕ ਸਿੰਗਲ, ਸਾਫ ਐਂਟਰੀ ਪੁਆਇੰਟ ਦੇ ਪਿੱਛੇ ਲੁਕਾ ਕੇ। ਇਹ ਕੰਪੋਨੈਂਟਾਂ ਦੇ ਇੱਕ ਜਟਿਲ ਸਮੂਹ ਨੂੰ ਵਰਤਣ ਵਿੱਚ ਆਸਾਨ ਬਣਾਉਂਦਾ ਹੈ, ਬਿਨਾਂ ਅੰਤਰਨਿਹਿਤ ਵੇਰਵਿਆਂ ਤਕ ਪਹੁੰਚ ਹਟਾਏ।
Facade ਪੈਟਰਨ ਕੀ ਕਰਦਾ ਹੈ
FACADE → a SIMPLE interface in front of a COMPLEX subsystem:
→ the subsystem has many components/steps; the facade provides ONE easy interface
→ clients use the simple facade instead of dealing with the complexity directly
→ the facade coordinates the underlying components
→ HIDE complexity behind a clean, easy-to-use interface
