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 [2018/05/02 08:35] – [Παράδειγμα αρχικοποίησης δεικτών] gthanoscpp:object_creation [2018/05/02 10:26] – [Εναλλακτικοί τρόποι κλήσης του κατασκευαστή της κλάσης] gthanos
Line 82: Line 82:
 == Με χρήση του τελεστή = πριν τις αγκύλες == == Με χρήση του τελεστή = πριν τις αγκύλες ==
  
-<code c++>+<code c++ RectangleInitialization.cpp>
 int main () { int main () {
   Rectangle rect = {5,6}; // calls Rectangle(int w, int h)   Rectangle rect = {5,6}; // calls Rectangle(int w, int h)
cpp/object_creation.txt · Last modified: 2021/05/07 06:22 (external edit)