So you're asking for OOP, no generic programming / templates? I know template metaprogramming magic becomes madness real fast :-)
I tend not to ask direct language questions anymore, everything is related to the code written on the interview. Like, you asked for a function doing something with an array of ints, and when you get the code you say "now, can we have this function work with arbitrary types instead of just int", "what are the constraints about this types", "what happens if it has a copy constructor but no assignment operator" etc.
And I accept everyone knows and uses some subset of the language.
Comments
So you're asking for OOP, no generic programming / templates? I know template metaprogramming magic becomes madness real fast :-)
I tend not to ask direct language questions anymore, everything is related to the code written on the interview. Like, you asked for a function doing something with an array of ints, and when you get the code you say "now, can we have this function work with arbitrary types instead of just int", "what are the constraints about this types", "what happens if it has a copy constructor but no assignment operator" etc.
And I accept everyone knows and uses some subset of the language.