0
Class A { A() { cout<<"a";} } ;
Now suppose class B is a derived class of A with its own constructor. Then which constructor will be executed 1st? Constructor of class A or constructor of class B? Why?
1 Antwort
+ 5
..... make the b class and put a cout in its constructor also.. :)