Chapter 20. Constructors and Destructors

    FAQ 20.01 What is the purpose of a constructor?

    FAQ 20.02 What is C++'s constructor discipline?

    FAQ 20.03 What is the purpose of a destructor?

    FAQ 20.04 What is C++'s destructor discipline?

    FAQ 20.05 What happens when a destructor is executed?

    FAQ 20.06 What is the purpose of a copy constructor?

    FAQ 20.07 When is a copy constructor invoked?

    FAQ 20.08 What is the "default constructor"?

    FAQ 20.09 Should one constructor call another constructor as a primitive?

    FAQ 20.10 Does the destructor for a derived class need to explicitly call the destructor of its base class?

    FAQ 20.11 How can a local object be destructed before the end of its function?

    FAQ 20.12 What is a good way to provide intuitive, multiple constructors for a class?

    FAQ 20.13 When the constructor of a base class calls a virtual function, why isn't the override called?

    FAQ 20.14 When a base class destructor calls a virtual function, why isn't the override called?

    FAQ 20.15 What is the purpose of placement new?



C++ FAQs
C Programming FAQs: Frequently Asked Questions
ISBN: 0201845199
EAN: 2147483647
Year: 2005
Pages: 566
Authors: Steve Summit

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net