Sample C++ Programmer Interview Questions and Answers from Goldman Sachs Equity Platform Tech
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() [...]


