Pointers
-
No pointer, no polymorphism.
-
C/C++ is notorious for raw pointers. While pointers can boost up the speed of programs, it invites a trillion chances for making mistakes. You should avoid using raw pointers, instead, consider using
unique_ptr
,shared_ptr
andweak_ptr
. They are almost as efficient as raw pointers …