tags:

views:

49

answers:

3

This is a question my interviewer asked me. My Answer is -

if we assign an object of the derived class to the reference of the base class , the members of the derived class will eclipse or hide.

he didn't tell it's wrong or right. I want to confirm it.

+2  A: 

There is no such concept "object eclipsing".

flybywire
A: 

I don't know, nor it seems does Google...

Martin Milan
Being honest, this might be a deliberate trick question. I find the ability to use the phrase "I don't know" quite valuable in a candidate - someone who will stop and research rather than stumble forward with no real idea about a concept...
Martin Milan
A: 

Maybe the interviewer meant to say slicing?

That, or it was a trick question.

Frank Shearar