Problem Statement
A virtual Proxy is commonly used to:
Explanation
Proxy stands in front of a real object. A virtual proxy defers object creation. A remote proxy represents an object in another address space. A protection proxy controls access.
It lets you manage cost, latency, and access control without changing clients.
Code Solution
SolutionRead Only
class ImageProxy implements Image { load(){ if(real==null) real=new Image(); real.load(); } }