User Tools

Site Tools


cpp:object_creation

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:object_creation [2017/05/09 13:35] – [Δημιουργία αντικειμένων] gthanoscpp:object_creation [2017/05/10 04:47] – [Δημιουργία αντικειμένων] gthanos
Line 16: Line 16:
 }; };
  
-Rectangle::Rectangle(int w, int h) +Rectangle::Rectangle(int w, int h)width(w), height(h) {
-  width wheight h+Rectangle::Rectangle(int s) width(s), height(s) {}
-} +
- +
-Rectangle::Rectangle(int s) +
-  width height s+
-}+
  
 int Rectangle::getWidth() const { return width;} int Rectangle::getWidth() const { return width;}
cpp/object_creation.txt · Last modified: 2021/05/07 06:22 (external edit)