9주차 [DesignPattern] Proxy pattern#62
Open
ChaerinYu wants to merge 1 commit intono-study-no-future:ChaerinYufrom
Open
9주차 [DesignPattern] Proxy pattern#62ChaerinYu wants to merge 1 commit intono-study-no-future:ChaerinYufrom
ChaerinYu wants to merge 1 commit intono-study-no-future:ChaerinYufrom
Conversation
| Image image1 = new ProxyImage("HiRes_10MB_Photo1"); | ||
| Image image2 = new ProxyImage("HiRes_10MB_Photo2"); | ||
|
|
||
| image1.displayImage(); // loading necessary |
Member
There was a problem hiding this comment.
위에 image1의 선언했을 때 실제 객체가 생성되는게 아니라 displayImage()를 했을 때 생성되는 가상프록시 예제인거죠?
이미지가 들어가있지 않지만 들어간것처럼 보이는거고 진짜 이미지를 display할때 불러오는 것.. 이게 바로 Proxy..?
Member
Author
There was a problem hiding this comment.
저는 ProxyImage 클래스의 displayImage() 메소드에서 RealImage 클래스 객체를 생성하여 대신 일을 수행하는 거라고 이해했습니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.