what is object slice?

Answers were Sorted based on User's Feedback



what is object slice?..

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

what is object slice?..

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

Post New Answer

More Core Java Interview Questions

Can we overload the main() method?

0 Answers  


How to sort list of list in java?

0 Answers  


Is string thread safe in java?

0 Answers  


What is static keyword in java?

0 Answers  


What is dynamic binding(late binding)?

0 Answers  






Is java platform independent?

0 Answers  


Why do we create public static method in java?

0 Answers  


What are the Class Libraries ?

0 Answers   Wipro,


What is method with example?

0 Answers  


How many bits is size_t?

0 Answers  


Explain the difference between runnable and callable interface in java?

0 Answers  


How to print nodes of a Binary tree?

0 Answers  


Categories