일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- inner join
- sql랭킹
- VARIABLE
- 자바기초
- jdbc driver
- tempDB
- 이미지세로길이
- xmldom
- FileSystemObject
- SPLIT
- injection
- asp함수
- join
- 한글입력체크
- instr
- MSSQL보안
- update
- WML
- 이미지가로길이
- VarType
- 정규식
- sql순위
- javascript 한글입력체크
- XML
- wap
- 인젝션
- JavaScript
- array
- ERD
- sql업데이트
- Today
- Total
목록전체 글 (384)
3초기억력
//캐릭터 //마법사, 탱크 class Character{ int hp; void attack() { System.out.println("기본공격"); } } class Wiz extends Character{ //마법사 마법공격 @Override void attack() { System.out.println("얼음마법공격"); } } class Warrior extends Character{ @Override void attack() { System.out.println("해머 공격"); } } public class OverridingEx2 { public static void main(String[] args) { Wiz w1 = new Wiz(); w1.attack(); Warrior w2 = n..
// 오버라이드 : ~위에 덮어쓰다. ~ 우선되다. // - 오버라이딩 //- 부모클래스로부터 상속받은 메서드의 내용을 자식클래스에 맞게 변경하는 것(재정의) // 오버라이딩 조건 //- 선언부(메스드명, 매개변수, 리턴타입) 동일 //- 접금제어자를 좁은 범위로 변경할 수 없다. // 오버로딩 : 기존에 없는 메서드를 정의 //2차원 포인트 //3차원 포인트 class Point{ int x; int y; String getLocation() { return "x>" + x + ", y>"+ y; } } class Point3D extends Point{ int z; String getLocation(String i1) {//오버로딩 return i1; } int getLocation(int i, in..
// 오버라이드 : ~위에 덮어쓰다. ~ 우선되다. // - 오버라이딩 //- 부모클래스로부터 상속받은 메서드의 내용을 자식클래스에 맞게 변경하는 것(재정의) // 오버라이딩 조건 //- 선언부(메스드명, 매개변수, 리턴타입) 동일 //- 접금제어자를 좁은 범위로 변경할 수 없다. // 오버로딩 : 기존에 없는 메서드를 정의 //2차원 포인트 //3차원 포인트 class Point{ int x; int y; String getLocation() { return "x>" + x + ", y>"+ y; } } class Point3D extends Point{ int z; String getLocation(String i1) {//오버로딩 return i1; } int getLocation(int i, in..

//유닛 배열 생성 //변수: hp, mp | method : attack //하늘 - 비행기, 드래곤 각 10개 //땅 - 탱크, 사람 각 10개 class Unit{ int hp; int mp; void attack() { System.out.println("기본 공격 ~~~~~~~~~~~~~~~~~"); } } //하늘 class Sky extends Unit{ } //땅 class Ground extends Unit{ } //비행기 class Airplane extends Sky{ @Override void attack() { System.out.println("미사일 공격!!"); } } //드래곤 class Dragon extends Sky{ @Override void attack() { Sy..
//객체 배열 - 클래스들의 배열 // - 기본타입의 배열이 아니라 객체가 원소인 배열 //즉, 객체에 대한 주소를 갖는 배열 //학생 100명을 저장하는 배열 //이름, 나이, 학과, 학번 class Student{ String name; int age; String classname; String classno; void study() { System.out.println("공부한다."); } } public class ObjectArray { public static void main(String[] args) { int[] list_number = new int[100]; //정수 100개를 저장하는 배열 Student[] list = new Student[100]; //학생클래스의 100개의 주..