4 ms·
Plenty: classes (including constructors/destructors, virtual methods, etc.), operator overloading, patterns like RAII, ...
by BlackFingolfin 8y ago
Plenty: classes (including constructors/destructors, virtual methods, etc.), operator overloading, patterns like RAII, ...
- pjmlp 8y agoStronger type safety, fewer implicit conversions.
- masklinn 8y ago> fewer implicit conversions. Surely C++ has way more implicit conversions than C, what with having all of C's and ctors defaulting to converting?
- pjmlp 8y agoOnly if developers are too lazy to use explicit. I was referring to C implicit conversions that aren't valid in C++ code, like void* to other pointer types.