#include #include using namespace std; // Base class class Shape { public: void setWidth(int w) { width =
The default class constructor is called unless you explicitly call another constructor in the derived class. the language specifies this.
Rectangle(int h,int w): Shape(h,w) {...}
Will call the other base class constructor.