PPT Slide
box mybox(3); // integer constructor mybox = 4; // integer constructor to create temporary // assignment of temporary to variable // destructor on temporary mybox = foo (mybox + 1); // start of statement // integer constructor to create temporary // binary addition of boxes box operator + (box & left, box & right) return box(((int) left) + (int) right); // inside addition operator // conversion of left box to integer // conversion of right box to integer // integer constructor for temporary // return from addition operator mybox = foo (mybox + 1); // continuation of statement box bbox; // inside function foo // default constructor to create variable