what is object slice?
Answers were Sorted based on User's Feedback
Answer / vivek
When a derived class object is assigned to a base class,
only the base class's part of content in the derived object
are copied to the base class, leaving behind the derived
class specific contents. This is referred as Object Slicing.
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / rajashekar reddy peta
Object slicing is defined as the conversion of an object into something with less information (typically a superclass).
| Is This Answer Correct ? | 5 Yes | 2 No |
How do you create a bulleted list?
What are different ways of object creation in java ?
What is variable and its types?
What is overriding in java?
What is null in java?
what is stringtolennizer with example?
What is meant by overloading?
what is net based application and its types
What is private protected in java?
What is ide with example?
I want to persist data of objects for later use. What’s the best approach to do so?
How can we make a class virtual?