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 can constructor chaining be done using this keyword?
What things should be kept in mind while creating your own exceptions in java?
What are the legal parameters?
What is java literals?
Why do we need to override equals() and hascode() method of object class?
How to print nodes of a Binary tree?
Can a class be subclass of itself?
Is void a data type?
What is number data type?
What is default constructors?
Hi ,i convert contrller as jSp And presentation as servlet ...will it do? if so what are advantage and idsadvantages
Why object class is super class for every class in java?