- Overview
- Table of Contents
- Special Member Functions: Constructors, Destructors, and the Assignment Operator
- Constructors
- Constructors FAQ, Part I
- Constructors FAQ, Part II
- Constructors FAQ, Part III
- C++0x Constructor-Related Features FAQ, Part I
- C++0x Constructor-Related Features FAQ, Part II
- C++0x Constructor-Related Features FAQ, Part III
- Assignment Operator
- Copy Constructor and Assignment Operator FAQ, Part I
- Copy Constructor and Assignment Operator FAQ, Part II
- Destructors
- Destructors FAQ
- Summary
- Online Resources
- Operator Overloading
- Memory Management
- Templates
- Namespaces
- Time and Date Library
- Streams
- Object-Oriented Programming and Design Principles
- The Standard Template Library (STL) and Generic Programming
- Exception Handling
- Runtime Type Information (RTTI)
- Signal Processing
- Creating Persistent Objects
- Bit Fields
- New Cast Operators
- Environment Variables
- Variadic Functions
- Pointers to Functions
- Function Objects
- Pointers to Members
- Lock Files
- Design Patterns
- Dynamic Linking
- Tips and Techniques
- A Tour of C99
- C++0X: The New Face of Standard C++
- C++0x Concurrency
- The Reflecting Circle New
- We Have Mail New
- The Soapbox
- Numeric Types and Arithmetic
- Careers
- Locales and Internationalization
- Special Member Functions: Constructors, Destructors, and the Assignment Operator
Special Member Functions: Constructors, Destructors, and the Assignment Operator
Last updated Mar 1, 2004.
Objects are the fundamental unit of abstraction in object-oriented programming. In a broad sense, an object is a region of memory storage. Class objects have properties that are determined when the object is created. Conceptually, every class object has four special member functions: default constructor, copy constructor, assignment operator, and destructor. If these members are not explicitly declared by the programmer, the implementation implicitly declares them. This section surveys the semantics of the special member functions and their roles in class design and implementation.


Account Sign In
View your cart