Techniques
templates
--
template
class C { ... }
overloading --
void
read(int);
void
read(float)
- friends --
to bypass protection
- type conversions --
by class constructors or type operators
- type coercion --
by explicit casts
(is dangerous) - smart pointers --
by overloading de-reference
slide
:
C++ -- techniques (1)