Posted on 2003-11-04
I got this question from one of the user group.. I found it quite interesting.... So I thought you people must give it a try.... I guess i know the answer but i am not that confident about it...... Its just a puzzle to puzzle you.....
virtual void func1 ()
cout << "Base: func1" << endl;
void func2 ()
cout << "Base: func2" << endl;
void func1 ()
cout << "Derived: func1" << endl;
virtual void func2 ()
cout << "Derived: func2" << endl;
return 0 ;
Guess the output first..... And then try the explaination part......
Don't think the answer but know the answer ... ;-)