Class Parent class Child : Parent Child child = new Parent Parent parent = new Child Child는 Parent의 요소를 다 가지고 있으니 형변환이 가능한거야? 그럼 Parent 로 변했을 때 데이터는 접근 불가가 되는거야 아니면 메모리 해제가 되는거야?
댓글 0