자바 ch6

hyunwoo·2022년 11월 2일
0


obj.getClass()를 출력하면
아래와 같이 class Point 로 추력이된다.

obj.getClass().geetName()을 출력하게 되면

Point 이렇게 나온다


obj.getClass()하면 => class Point
obj.getClass().getName() => Point

0개의 댓글