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