분류 전체보기281 가변인자 ... (이것이 java다 p.219) 임시저장 2019. 4. 9. final final field (이것이 자바다 p.245)객체와 함께 메모리에 할당되고 소멸되며, 초기화는 한번만 가능하다.초기 값을 주는 방법 두 가지) 1. 필드 선언 시에 초기화 2. 생성자에서 초기화ex) 주민등록번호 (이것이 자바다 p.301) final class: 상속 불가능 final method: 오버라이딩 불가능 2019. 4. 9. 자바/ 이클립스 버전, 다운로드 위치 Eclipse IDE 2019-03 https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2019-03/R/eclipse-inst-win64.exe Java SE 8u201 / Java SE 8u202Java SE 8u201 / Java SE 8u202 includes important bug fixes. Oracle strongly recommends that all Java SE 8 users upgrade to this release. JDK https://www.oracle.com/technetwork/java/javase/downloads/index.html 2019. 4. 9. 클래스 상속 123456789101112131415161718192021222324252627package study01; public class Car { private String company; String model; String color; public int speed = 250; //다른 패키지에서도 접근할 수 있다. Car(){ } Car(String model, String company, String color){ this.model = model; this.company = company; this.color = color; } public String getCompany() { return company; } public void setCompany(String company) { this.co.. 2019. 4. 9. 이전 1 ··· 65 66 67 68 69 70 71 다음