How we conclude that the constructors are not inherited??
Because I can call the base class constructors like below which means that the the constructor is accissible .
ThanksCode:class Base{ public: Base(int x,int y){} }; class Derived : public Base{ public: Derived(int a,int b):Base(a,b) //I am calling the Base constructor { } };




Reply With Quote