์ด๋ฒ ๊ฐ์์์๋ SharedPointer๋ฅผ ์ด์ฉํด์ GeometricObject๋ฅผ ์ ์ฅํ์
จ๋๋ฐ
์๋
ํ์ธ์ ์ ๊ฐ ๋ถ์ ํํ ์๋ ์์ง๋ง ์ ๋ ๊ถ๊ธํ๋ ๋ถ๋ถ์ด๋ผ ์ ๊ฐ ์ฐพ์ ๋ด์ฉ์ ์ฌ๋ ค๋๋ฆฝ๋๋ค. c++ - How is it possible (if it is) to implement shared_ptr without requiring polymorphic classes to have virtual destructor? - Stack Overflow