This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Both the base class and derived class contructors invoke the method call().. since it is overridden in the derived class, and u r creating an object of the derived class, the derived class's call() method will be called twice. The first time, an object of Q05 is not yet created and b value is not initialized to 16. So 0 is printed. [ March 27, 2003: Message edited by: Rajeshwari Natarajan ]