the GoG book describes the proxy as a class (call it P) that extends an abstract class(i assume "or implement an interface") (call it A) to provide actual access to another object of a class (call it B) that extends the same abstract class.
that maens that the P will provide the same exact methods B provides.
now if i am trying to hide some methods of B by using the protection proxy, i can't see how i can do that because P will provide the same methods.
I know that Adapter
pattern provides what I want to accopmlish (hding methods) BUT what is a then protection proxy is ?