[ActionScript 3.0] Singleton , 싱글톤 페턴
package { public class Singleton { private static var instance:Singleton; private static const checker:Object = {}; public function Singleton(initObj:Object) { if(initObj != checker) { throw new Error("Private constructor!"); } } public static function getInstance():Singleton { if(instance == null) { instance = new Singleton(checker); } return instance; } } }
게시판 목록
팁게시판
디자인과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6052 | 9년 전 | 575 | ||
| 6051 | 9년 전 | 560 | ||
| 6050 | 9년 전 | 938 | ||
| 6049 | 9년 전 | 325 | ||
| 6048 | 9년 전 | 552 | ||
| 6047 | 9년 전 | 681 | ||
| 6046 | 9년 전 | 676 | ||
| 6045 | 9년 전 | 620 | ||
| 6044 | 9년 전 | 576 | ||
| 6043 | 9년 전 | 746 | ||
| 6042 | 9년 전 | 467 | ||
| 6041 | 9년 전 | 537 | ||
| 6040 | 9년 전 | 416 | ||
| 6039 | 9년 전 | 368 | ||
| 6038 | 9년 전 | 376 | ||
| 6037 | 9년 전 | 356 | ||
| 6036 | 9년 전 | 358 | ||
| 6035 | 9년 전 | 331 | ||
| 6034 | 9년 전 | 334 | ||
| 6033 | 9년 전 | 817 | ||
| 6032 | 9년 전 | 350 | ||
| 6031 | 9년 전 | 300 | ||
| 6030 | 9년 전 | 335 | ||
| 6029 | 9년 전 | 300 | ||
| 6028 | 9년 전 | 337 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기