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