Memory management
Pointers and references
•   What is pointer
•   How it works
•   What is reference
•   Operator ->
Passing arguments
• Passing by value
• Passing by pointer
• Passing by reference
Constructors and destructors
• What is it
• Why we need it
• When it is called
Heap and stack
• What is stack variable
• What is heap variable
• How to work with them
How to work with heap variables
• Allocate memory ONLY in constructor
• Deallocate memory ONLY in destructor
• new[] and delete[]
Copy constructors
• What it is
• When it is called
• What code should
Rule of three
• Destructor
• Copy constructor
• Assignment operator

cpp-2013 #4 Memory management