Proxy ढाँचाले अर्को object को access नियन्त्रण गर्न को लागि एक placeholder वा surrogate प्रदान गर्छ। proxy का real object जस्तै interface छ तर यसले behavior थप्छ — जस्तै lazy loading, access control, caching, वा logging — यसपछि यसलाई delegate गर्न अघि।
Proxy ढाँचाले के गर्छ
PROXY → an object that STANDS IN for another, controlling access to it:
→ same interface as the real object (clients use it transparently)
→ adds behavior BEFORE/AROUND delegating to the real object
→ controls WHEN and HOW the real object is accessed
→ "a stand-in that adds control/behavior"
