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.

Vibin Jith
  • 923
  • 3
  • 15
  • 34
  • I cannot find anything on this so it looks to me like it's a bogus term and either he didn't know what he was talking about or he meant something different, maybe EclipseLink (which would sound similar) as a persistance framework. –  Mar 03 '10 at 12:00
  • 2
    The correct response was "I'm afraid I haven't actually heard of that specific term before..." The brave response would be "a trick question..." – Martin Milan Mar 03 '10 at 12:02
  • Maybe he was thinking of "shadowing": http://en.wikipedia.org/wiki/Variable_shadowing – Joachim Sauer Mar 03 '10 at 12:04

2 Answers2

2

There is no such concept "object eclipsing".

flybywire
  • 261,858
  • 191
  • 397
  • 503
0

Maybe the interviewer meant to say slicing?

That, or it was a trick question.

Community
  • 1
  • 1
Frank Shearar
  • 17,012
  • 8
  • 67
  • 94