File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -562,7 +562,8 @@ There are 3 types of Proxies
562562* [ Virtual Proxy] ( #virtual-proxy ) - Which prevents creating an object until it is really necessary to save resources.
563563* [ Remote Proxy] ( #remote-proxy ) - Which duty is to create a correct request to ask a remote real object which may not be in our domain.
564564
565- ** Protection proxy**
565+ Protection proxy
566+ -------
566567
567568### Example
568569
@@ -599,7 +600,8 @@ localBank.pay(Transaction(3.15, true)) // It won't allow us to pay
599600localBank.pay(Transaction (3.15 , false )) // It will work
600601```
601602
602- ** Virtual Proxy**
603+ Virtual Proxy
604+ ------------
603605
604606We can use kotlin's [ lazy delegation] ( https://kotlinlang.org/docs/reference/delegated-properties.html#lazy )
605607
@@ -642,7 +644,8 @@ virtualScreen.show() // RealScreen is needed now, so we create it
642644
643645```
644646
645- ** Remote Proxy**
647+ Remote Proxy
648+ ----------
646649
647650### Example
648651
You can’t perform that action at this time.
0 commit comments