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 | 31 |
Tags
- angular button
- angular route
- angular animation
- flex-1
- route
- Oracle LISTAGG 사용 예시
- formgroup
- TAILWIND
- 앵귤러 모달
- Angular Router
- 스크롤 이벤트 감지
- prisma
- 셀렉트박스 커스텀
- 아이오닉 스크롤 이벤트
- Router
- modal
- 모달
- mysql if
- 검색
- 옵저버블
- 앵귤러 애니메이션
- scroll
- angular modal
- ApexChart
- Ionic modal
- egov spring ajax 사용 예시
- ajax 사용 예시
- 스크롤 이벤트
- 호버
- summary
Archives
- Today
- Total
깜놀하는 해므찌로
JAVA 상속관계 시 생성자 호출 순서 본문
반응형
SMALL
class Parent(){
Parent(){ // 부모 클래스 생성자 함수
System.out.print("Parent ");
}
}
class Child(){
Child(){ // 자식 클래스 생성자 함수
System.out.print("Child ");
}
}
public class test(){
public static void main(String[] args){
Parent parent = new Child(); // 결과 : Parent Child
}
}
1. 생성자와 담겨지는 변수의 타입의 관계가 상속관계이므로 이 때는 수퍼클래스(부모) 가 먼저 실행되고 자식(서브)클래스가 실행된다.
반응형
LIST
'IT' 카테고리의 다른 글
Angular layout example / flex-1 (0) | 2023.04.25 |
---|---|
summary, details tag toggle marker delete (0) | 2023.04.25 |
modal 범위를 벗어나 화면 잘릴 시 css (0) | 2023.04.24 |
modal 범위를 벗어나 화면 잘릴 시 css (0) | 2023.04.24 |
ControlValueAccessor Angular 사용 예시 / CustomValueAccessor (0) | 2023.04.24 |