• Image placeholder
  • 홈 페이지
  • 블로그 센터
  • 범주
Image placeholder

다이나믹캐스트

업캐스팅 다운캐스팅

업캐스팅(upcasting) : 자식클래스 포인터 -> 부모클래스 포인터로 변경(묵시적) 부모포인터 = 자식포인터 다운캐스팅(downcasting)하는 방법 static_cast (다운캐스팅만을 위한 것은 아님) 컴파일시 형변환하는 방법 // ex) double -> int / int -> double RTTI(Run Time Type Information/Identification) 맨 앞...

업캐스팅스태틱캐스트다운캐스팅다이나믹캐스트다운캐스팅

© 2022 intrepidgeeks.com

Privacy Policy Contact US Sitemap
🍪 This website uses cookies to ensure you get the best experience on our website. Learn more