Frequently Asked Questions (FAQ)
What does the #ifndef, the #define,
and the #include at the beginning of the .h file do?
What does the using namespace do?
How do you use the binary scope operator?
What are default values in parameters in functions?
What does a const in a parameter do?
Why use a const in a parameter?
What does a const at the end of a function prototype do?
When can I return a reference?
How do you overload operators?
What's a friend?
How do you overload << or >>?
What is the this pointer?
What is a static member?
How do you give a static data member a value?
When is a copy constructor used?
How do you define a copy constructor?
What does a copy constructor look like?
When is a destructor used?
How do you define a destructor?
What does a destructor look like?
How do you define an operator= or operartor[ ]?
What does an operator= with dynamic memory look like?
What does an overloaded operator look like?
What does an overloaded operator== look like?
How does the operator!= use the this pointer?
How do you define a reference to an int?
How do you define a pointer to an int?
How do you dereference?
What's a memory leak?
How do you deallocate (delete) memory you allocated?
How do you pass a pointer by reference?
What's a dangling pointer?