PolyParent pp = new PolyParent(); pp = new PolyChild(); 이거 뜻이 머야?? 왜이렇게 써? PolyParent 랑 PolyChild 파일 따로 있어 new는 왜 붙이고 앞뒤 왜 똑같이 써?
| |
| 이 글은 2년 전 (2023/9/12) 게시물이에요 |
|
PolyParent pp = new PolyParent(); pp = new PolyChild(); 이거 뜻이 머야?? 왜이렇게 써? PolyParent 랑 PolyChild 파일 따로 있어 new는 왜 붙이고 앞뒤 왜 똑같이 써?
|