721
edits
Line 31: | Line 31: | ||
When we create a pointer to our Point2D, the syntax is like this: | When we create a pointer to our Point2D, the syntax is like this: | ||
<source lang="c++" highlight="4">Point2D* p2 = new Point2D(1,2); | <source lang="c++" highlight="4" inline>Point2D* p2 = new Point2D(1,2); | ||
... | ... | ||
delete p2;</source> | delete p2;</source> |