반응형
object InstanceOf Class -> true/ false
Inheritance(상속)관계에서 부모객체인지 자식객체인지 확인하는데 사용.(형변환 가능여부).-
출처: https://zzdd1558.tistory.com/124 [YunJin_Choi]
https://mine-it-record.tistory.com/120
[JAVA] 자바_instanceof (객체타입 확인)
instanceof - instanceof는 객체 타입을 확인하는 연산자이다. - 형변환 가능여부를 확인하며 true / false 로 결과를 반환한다. - 주로 상속 관계에서 부모객체인지 자식객체인지 확인하는데 사용된다. ins
mine-it-record.tistory.com
'JavaCode(review)' 카테고리의 다른 글
| Map.entry -collections / unmodifiable Map (0) | 2020.07.16 |
|---|---|
| Map, Set - collections 개념 간단 비교정리 (0) | 2020.07.16 |
| Set - Symmetric&Asymmetric ( Set Interface Bulk Operation) - collection (0) | 2020.07.13 |
| HashSet Interface- collection (0) | 2020.07.09 |
| Immutable class // Location Class- adventure game 이용 (0) | 2020.07.07 |