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 [2017/05/10 04:47] – [Δημιουργία αντικειμένων] gthanos | cpp:object_creation [2017/05/10 04:49] – [Δημιουργία αντικειμένων] gthanos | ||
---|---|---|---|
Line 10: | Line 10: | ||
int width, height; | int width, height; | ||
public: | public: | ||
+ | Rectangle(int w, int h); | ||
+ | Rectangle(int s); | ||
+ | Rectangle(); | ||
int getWidth() const; | int getWidth() const; | ||
int getHeight() const; | int getHeight() const; | ||
Line 18: | Line 21: | ||
Rectangle:: | Rectangle:: | ||
Rectangle:: | Rectangle:: | ||
+ | Rectangle:: | ||
int Rectangle:: | int Rectangle:: | ||
Line 31: | Line 35: | ||
</ | </ | ||
- | Ο παραπάνω κώδικας δημιουργεί 3 αντικείμενα της κλάσης // | + | Ο παραπάνω κώδικας δημιουργεί 3 αντικείμενα της κλάσης // |
<WRAP center round tip 80%> | <WRAP center round tip 80%> |
cpp/object_creation.txt · Last modified: 2021/05/07 06:22 (external edit)