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
- HTML
- oracle
- 클래스
- JSP
- 전화걸기
- Graphic
- 메서드
- struts2
- 안드로이드
- Spring
- 오버로딩
- 메소드
- 에러페이지
- 예외처리
- 생성자
- paint
- Eclips
- 배열
- 어노테이션
- 기본
- 이클립스
- OGNL
- AWT
- Menu
- Java
- JavaScript
- 국제화
- layout
- Android
- mybatis
Archives
- Today
- Total
목록super (1)
note
super 연습문제 (에러 찾기)
package com.over3;//super에러 해결하기 public class PointTest { public static void main(String[] args){ Point3D p3 = new Point3D(1,2,3); System.out.println(p3.getLocation()); } } //Point(){} class Point{ int x; int y; String getLocation(){ return "x :"+x+", y :"+y; } } class Point3D extends Point{ int z; Point3D(int x, int y, int z){ /*2.에러 해결방법 부모 클래스에 default 생성자가 없고 인자를 전달해야 하는 생성자만 있을경우 명시적으로 supe..
자바/오버라이딩
2011. 12. 20. 17:46