This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | Next revision Both sides next revision | ||
|
cpp:object_creation [2020/04/08 14:35] gthanos [Δημίουργία αντικείμένων στο Heap] |
cpp:object_creation [2020/04/14 07:56] gthanos |
||
|---|---|---|---|
| Line 19: | Line 19: | ||
| void setHeight(int h); | void setHeight(int h); | ||
| }; | }; | ||
| + | </ | ||
| + | |||
| + | <code cpp Rectangle.cpp> | ||
| + | #include " | ||
| Rectangle:: | Rectangle:: | ||
| Line 41: | Line 45: | ||
| <code cpp RectangleUsage.cpp> | <code cpp RectangleUsage.cpp> | ||
| + | #include " | ||
| + | |||
| int main() { | int main() { | ||
| Rectangle rect1(3,4); | Rectangle rect1(3,4); | ||