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 | 31 |
Tags
- Menu
- AWT
- struts2
- Spring
- 에러페이지
- 안드로이드
- Android
- 기본
- 이클립스
- layout
- JavaScript
- 오버로딩
- paint
- 국제화
- JSP
- 전화걸기
- OGNL
- Java
- HTML
- Graphic
- 메소드
- Eclips
- 클래스
- mybatis
- 생성자
- 어노테이션
- 배열
- 메서드
- oracle
- 예외처리
Archives
- Today
- Total
목록클래스로 (2)
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