Showing posts with label base class. Show all posts
Showing posts with label base class. Show all posts

Thursday, March 20, 2014

C++: calling base class constructors



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)
  {...}