Rcasio - GameFactory
게임을 제작하면서 알게된 정보를 공유하는 곳입니다. ^^
2015년 9월 14일 월요일
팩토리 패턴
참조 :
https://www.youtube.com/watch?v=ApwZxNOFOaI&list=PLQWBFlrslfwsAODC_8UAT-GWTnywCsK6Y&index=3
객체 생성하는 클래스를 만들어 해당 객체 생성을 한 군대(공장)에서 제어한다.
Factory Pattern
Role : Instantiate a class
Point : loosing coupling between Creator and Product
Benefit : no effect from changing of creation way for Product
댓글 없음:
댓글 쓰기
최근 게시물
이전 게시물
홈
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기