Multiple choice

Which of the following is an incorrect statement about 'Proxy' pattern?

  1. It falls under 'Structural' pattern.

  2. It maintains a reference to an object of type implementer.

  3. It defines an interface having members that will be implemented by RealSubject and Proxy class.

  4. This is a class which we want to use more efficiently by using proxy class.

  5. This is a class which holds the instance of RealSubject class and can access RealSubject class members as required.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Proxy pattern does not use such object reference. Bridge pattern is used for that.