cpp:object_creation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
cpp:object_creation [2020/04/08 14:35] – [Δημίουργία αντικείμένων στο Heap] gthanos | 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); |
cpp/object_creation.txt · Last modified: 2021/05/07 06:22 (external edit)