Proxy Object

Hi friends,


can any one please help me to understand what is proxy object and what really the situation comes when we should use use proxy object?

I tried on web but not get it.

I really waiting for reply-
There is so many different situations where proxy object can be useful...
Some of them:
reference_wrapper from standard library is a proxy object.
If you need to log all access to some object.
If you want to implement lazy initialization, result caching or COW over some already existing class.
If you need to provide tread-safe access to thread-unsafe class
If you need to limit access to the object or forbid part of its interface.
thank you guys.

As i understood ,

proxy object is just like a interface object.
which able to hide the / put some restriction over accessing them.
Topic archived. No new replies allowed.