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
- 앵귤러 모달
- modal
- 아이오닉 스크롤 이벤트
- Angular Router
- angular animation
- 스크롤 이벤트 감지
- 호버
- route
- summary
- angular modal
- formgroup
- Router
- TAILWIND
- ajax 사용 예시
- scroll
- 앵귤러 애니메이션
- egov spring ajax 사용 예시
- 옵저버블
- angular route
- ApexChart
- mysql if
- 스크롤 이벤트
- 검색
- Ionic modal
- 모달
- flex-1
- Oracle LISTAGG 사용 예시
- angular button
- 셀렉트박스 커스텀
- prisma
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 |