
성적을 멤버변수로 입력받고, 성적의 총점, 평균 등급을 계산해 출력하는 Class 를 구현해 보겠습니다. 실습을 위한 class 구성은 다음과 같습니다. package com.score; public class MTest { public static void main(String[] args) { Score lee = new Score(); lee.setName("쟌쥰"); lee.setKor(100); lee.setEng(23); lee.setMath(75); Score hong = new Score("홍길동", 58, 90, 17); //toString() 을 호출하지 않아도 출력은 toString() 메서드의 return 값 으로 나옴 System.out.println(lee.toString());..

객체지향 프로그래밍의 상속성을 이용해 Car, SportCar, Truck 세 가지 클래스를 만들고 악셀, 브레이크 메서드를 구현해 보았습니다. 실습을 진행한 코드의 Class 구성도 입니다. package com.car; public class MTest { public static void main(String[] args) { Car car1 = new Car(); car1.accelPedal(); car1.accelPedal(); System.out.println(car1); car1.breakPedal(); System.out.println(car1); car1.breakPedal(); System.out.println("==================="); Car car2 = new Spo..
- Total
- Today
- Yesterday
- jdbc
- 캡슐화
- controller
- JdbcTemplate
- INSERT
- Delete
- view
- Scott/Tiger
- java 환경설정
- 상속
- ojdbc6.jar
- 객체지향
- Oracle
- .
- 추상화
- 다형성
- java
- MVC
- 객체
- select
- Update
- OOP
- JDBC 프로그램 작성단계
- model
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |