User Tools

Site Tools


cpp:copy_constructors

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
cpp:copy_constructors [2019/04/19 09:59] – [Μια πιο σύνθετη περίπτωση] gthanoscpp:copy_constructors [2020/04/05 23:09] – [Ορισμός ενός κατασκευαστή αντιγραφέα] gthanos
Line 27: Line 27:
  
 <code cpp> <code cpp>
-Rectangle::Rectangle(const Rectangle &r) {+Rectangle::Rectangle(Rectangle &r) {
   width = r.width; height = r.height;   width = r.width; height = r.height;
 } }
Line 259: Line 259:
     }     }
   }   }
 +}
 </code>  </code> 
  
cpp/copy_constructors.txt · Last modified: 2022/05/12 19:41 by gthanos