Example of Initializers
class order { // warning, initialization errorpublic: order (int i) : one(i), two(one) { } int test() { return two; }private: int two; // initialized first int one; // initialized second
};
Previous slide
Next slide
Back to first slide
View graphic version