adspace
Answer Posted / Himanshu Shekhar
Object slicing is a C++ feature that occurs when an object of a derived class is assigned to or passed by reference to a base class. When this happens, the object is converted to its base class type, and any derived-class-specific member functions or data members are not accessible. This results in loss of polymorphic behavior.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers