SyntaxFix
Write A Post
Hire A Developer
Questions
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.