A copy constructor is used to initialize a previously uninitialized object from some other object's data.