Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. CellPhoneHandler(const CellPhoneHandler &source);
  2.  
  3. CellPhoneHandler::CellPhoneHandler(const CellPhoneHandler &source){
  4. this->phones = new CellPhone*[source.capacity];
  5. this->capacity = source.capacity;
  6. this->nrOfModels = source.nrOfModels;
  7.  
  8. for (int i = 0; i < source.nrOfModels; i++)
  9. this->phones[i] = new CellPhone(*source.phones[i]);
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement