You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: patterns/structural/proxy.py
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
"""
2
2
*What is this pattern about?
3
-
Proxy is used in places where you want to add functionality to a class without changing its interface. The main class is called `Real Subject`. A client should use the proxy or the real subject without any code change, so both must have the same interface. Logging and controlling access to the real subject are some of the proxy pattern usages.
3
+
Proxy is used in places where you want to add functionality to a class without
4
+
changing its interface. The main class is called `Real Subject`. A client should
5
+
use the proxy or the real subject without any code change, so both must have the
6
+
same interface. Logging and controlling access to the real subject are some of
0 commit comments