Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- JSP
- 국제화
- 기본
- AWT
- layout
- 메서드
- paint
- 메소드
- HTML
- Android
- 오버로딩
- 어노테이션
- Java
- mybatis
- Menu
- struts2
- 생성자
- 안드로이드
- 에러페이지
- 클래스
- 전화걸기
- 예외처리
- OGNL
- 배열
- 이클립스
- oracle
- JavaScript
- Graphic
- Spring
- Eclips
Archives
- Today
- Total
목록자동차 (1)
note
클래스로 자동차 만들기
class Car{//클래스로 자동차 //멤버 변수 int speed; int direction; } public class CarTest { public static void main(String[] args){ Car c = new Car(); c.speed = 10; c.direction=1; System.out.println("speed : "+ c.speed); System.out.println("direction : "+ c.direction); System.out.println("Car 객체 : "+c); System.out.println("==================="); Car c2 = new Car(); System.out.println("speed : "+ c2.speed); ..
자바/클래스&객체
2011. 12. 15. 14:45