welcome to 2017 Java class
수업일정 |
---|
주차 | 기간 | 수업내용 |
---|
1 | 09/01 ~ 09/07 | Introduction to Java - lecture process explanation - install Java, NetBean IDE, Eclipse, etc | 2 | 09/08 ~ 09/14 | Literal and variables - constant, variables - data type; type conversion | 3 | 09/15 ~ 09/21 | Operator and comparision - Operators and boolean - if-else control flow | 4 | 09/22 ~ 09/28 | Logic and repeatition - for- while loop - logical condition | 5 | 09/29 ~ 10/05 | Array - array of various data type - creation, deletion and access | 6 | 10/06 ~ 10/12 | Object-oriendted programming - object and class definition - instance and class member | 7 | 10/13 ~ 10/19 | Initialization and creation - class creator and deletor - initialization | 8 | 10/20 ~ 10/26 | mid-term | 9 | 10/27 ~ 11/02 | method and variable validity - input /output method - local and global variable | 10 | 11/03 ~ 11/09 | Inheritance - inheritance and creator | 11 | 11/10 ~ 11/16 | Overriding and overloading - polymorphism - interface | 12 | 11/17 ~ 11/23 | Abstraction - abstract - interface & final | 13 | 11/24 ~ 11/30 | Package - class path - APIs | 14 | 12/01 ~ 12/07 | Exception - error handling - try..catch | 15 | 12/08 ~ 12/14 | Open discussion - revisit all problems - wrap up lectures | 16 | 12/15 ~ 12/21
Vehicle 추상 클래스를 작성하세요. Vehicle은 움직이는 최대 속도를 포함 합니다. Vehicle을 상속 받아 Car 추상 클래스를 정의합니다. Car 클래스는 색상, 엔진용량 (예, 2000 cc), 좌석 수를 속성값으로 가지고 있습니다. Car 클래스를 상속받아 Sport 와 SUV 클래스를 정의합니다. Sport 의 경우, 터보 기능, 루프 개방의 속성을 가지고 SUV의 경우, 4WD 속성을 가지고 있습니다.
상기 정의된 클래스를 가지고 test 클래스를 작성합니다. 아래 객체를 생성하고 배열에 추가하고, 원하는 객체를 검색하여 출력합니다.
스포츠카: 검정, 2000cc, 2 좌석, 최대속도 250km/h 스포츠카: 빨강, 3000cc, 2좌석, 최대속도 320km/h, 루프개방, 터보 SUV: 흰색, 2500cc, 4좌석, 최대 250 km/h, 4WD SUV: 회색, 2000cc, 4좌석, 최대 230 km/h SUV: 검정, 3500cc, 7좌석, 최대 280 km/h, 4WD
상기 자동차 리스트에서 2000cc 회색 SUV를 찾아 사양을 toString 메소드 정의하여 출력하세요
2. 상기 배열에서 엔진용량에 따라 오름차순으로 정렬하세요. Comparable 인터페이스를 구현하세요. | final exam |
|
|