Something
public text v1 · immutable#include <iostream>using std::cout;using std::endl;class Base {public: Base(int foo) { cout << "Base constructed with param " << foo << endl; }};class Derived : public Base {public: Derived(int foo, int bar): Base(foo) { cout << "Derived constructed with params " << foo << " and " << bar << endl; }};int main() { Derived theObject(42, 19); return 0;}