bpDev

bopool1222@gmail.com

  • 분류 전체보기 (106)
    • JAVA (27)
      • Android (18)
    • Python (19)
    • SQL (3)
    • JavaScript (2)
    • Background (55)
      • IT (29)
      • Dee (11)
      • Math (5)
      • Memo (10)
    • Work (0)
  • 태그

CALENDAR

«   2025/12   »
일 월 화 수 목 금 토
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
/ /
  • article thumbnail
    Singleton Pattern
    2025.03.173

    class Connection { private static Connection _inst; private int count; private Connection(){ count = 0; } public static Connection getInstance(){ if(_inst == null){ _inst = new Connection(); } return _inst; } public void count(){ count++; } public int getCount(){ return count; }}public class BB { public static void main(..

PREV 이전 1 NEXT 다음

+ Recent posts

Powered by Tistory, Designed by wallel and customized by bpDev
Rss Feed

티스토리툴바