Sample C++ Programmer Interview Questions and Answers from Goldman Sachs Equity Platform Tech

Posted on December 22, 2007. Filed under: Languages and Algorithms | Tags: , , |

The phone interview questions can be found at www.careercup.com. Below are the on-site questions.
Show me how virtual function works in C++
class base{
public:
virtual void foo(){}
};
class derived: public base{
public:
void foo(){}
};
base * a, *b;
a = new base();
a->foo() // Calls base’s foo()
b = new derived();
b->foo() [...]

Read Full Post | Make a Comment ( None so far )

Liked it here?
Why not try sites on the blogroll...