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

No comments:

Post a Comment