cpp:copy_constructors
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
cpp:copy_constructors [2021/05/07 08:32] – [Μια πιο σύνθετη περίπτωση] gthanos | cpp:copy_constructors [2021/05/07 08:37] – gthanos | ||
---|---|---|---|
Line 99: | Line 99: | ||
Rectangle(int s); | Rectangle(int s); | ||
Rectangle(); | Rectangle(); | ||
- | Rectangle(Rectangle& | + | Rectangle(const Rectangle& |
void setWidth(int w); | void setWidth(int w); | ||
void setHeight(int h); | void setHeight(int h); | ||
Line 229: | Line 229: | ||
int getHeight(); | int getHeight(); | ||
void setOrigin(Point *p); | void setOrigin(Point *p); | ||
- | Point *getOrigin(); | + | Point *getOrigin() |
}; | }; | ||
Line 259: | Line 259: | ||
int Rectangle:: | int Rectangle:: | ||
void Rectangle:: | void Rectangle:: | ||
- | Point *Rectangle:: | + | Point *Rectangle:: |
</ | </ | ||
cpp/copy_constructors.txt · Last modified: 2022/05/12 19:41 by gthanos