What is Object Eclipsing?

This is the question that my interlocutor asked me. My answer -

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

he did not say it wrong or right. I want to confirm this.

+3
source share
2 answers

There is no such thing as "eclipse of an object."

+2
source

Perhaps the interviewer wanted to say slicing ?

This, or it was a trick.

0
source

Source: https://habr.com/ru/post/1735221/


All Articles