자주 헷갈릴 수 있는 개념이라 표로 정리해둔다.
| Element | Overriding | Overloading |
| Declaration | Sub Class | equivalent Class |
| Relationship | Parent - Child Class (Inheritance) | equivalent |
| Goal | same method name but specially optimized at sub class | same method name and Polymorphism(ex. different parameter type -> different return type) |
| Condition | Same Parameter type, the number of parameter | Different Parameter (number, type..) |
| Binding | Dynamic Binding (Runtime) | Static Binding (Compile Time) |
'JVM' 카테고리의 다른 글
| gradle 특정 테스트 제외하기 (0) | 2025.03.11 |
|---|---|
| build.gradle 명령어 (0) | 2023.10.17 |