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 |
What is difference between hash mapping and hash table?
Which keyword specify that a variable is effectively final ?
Why is core java important?
Define interface in java?
What is the difference between hashmap and hashtable in java?
What is an enumeration?
What is class and its types?
What happens if an exception is throws from an object's destructor?
What is procedure overloading?
long d =10;int i =0;i=d; /// is this possible? If d is very long number (10 digits or some thing) then?
Can a double value be cast to a byte?
what invokes a threads run() method? : Java thread