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 revisionBoth sides next revision
cpp:copy_constructors [2019/04/19 10:01] – [Μια πιο σύνθετη περίπτωση] 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;
 } }
cpp/copy_constructors.txt · Last modified: 2022/05/12 19:41 by gthanos