Constructors and Destructors
Closed this issue · 2 comments
alexkowalenko commented
Thanks for writing your book, it's a helpful summary.
Reading through the sections on classes, you don't really introduce constructors and destructors, except when you talk about virtual destructors. There are examples in the include code of both, but no explicit basic explanation, and neither of the keywords constructor and destructor.
michaliskambi commented
Good point -- done :)
I added a section about them in 0ce64ce . It's "4.3. Classes and class instances, constructors, destructors" now.
Updated all the English versions online, in particular
alexkowalenko commented
Quick turnaround! The explanation looks great, and the example is useful. It shows what needs to be done if you want a constructor and destructor, and how to code it.