What is Object Eclipsing?
This is a question开发者_StackOverflow社区 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.
There is no such concept "object eclipsing".
Maybe the interviewer meant to say slicing?
That, or it was a trick question.
精彩评论