<<< Another twist: dynamic memory allocation | Index | struct Rectangle with dynamic memory allocation >>> |
Let's try using new and delete and see how much impact it has on the internal implementation of the Rectangle struct.
However, before making any changes, we must talk about C++ constructor initializer lists ( presentation ).
<<< Another twist: dynamic memory allocation | Index | struct Rectangle with dynamic memory allocation >>> |