class Base { public: int x; Base(int x) : x(x) {} }; class Derived : public Base { public: int y; Derived(int x, int y) : Base(x), y(y) {} // ← Base constructor called here };