Delegation:?
- Once the real object is initialized, the proxy delegates the call to the real
object. In our example, after the image is loaded by the proxy, it delegates the
Display() method to the RealImage class.
Benefits of the Proxy Pattern:
object. In our example, after the image is loaded by the proxy, it delegates the
Display() method to the RealImage class.
Benefits of the Proxy Pattern: