Computer Science, asked by Prashantgaikar8049, 1 year ago

What is object slicing in C++ or Java?

Answers

Answered by Anonymous
0

What is meant by object slicing in C++ or Java?when should we use it: Follow Answer ... Object slicing is used to describe the situation when you assign an object of a derived class to an instance of a base class. This causes a loss of methods and member variables for the derived class object

Similar questions