Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
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
Tags
more
Archives
Today
Total
관리 메뉴

개발용

static 멤버 본문

개발/JAVA

static 멤버

DeP 2016. 11. 10. 11:33

Calculator처럼 공통적으로 사용하는 메소드는 static 메소드로 설정하여 클래스 이름으로 접근하는 것이 좋다. (객체를 만들어 메모리를 사용할 필요가 없다)

'개발 > JAVA' 카테고리의 다른 글

예외처리 Exception  (0) 2016.11.10
Interface, Abstract, 추상 클래스, 추상 메소드  (0) 2016.11.10
inner class  (0) 2016.11.10
Random  (0) 2016.11.10
Array : 기본형과 객체 차이  (0) 2016.11.10