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 |
Difference between an argument and a parameter?
10 Answers Accounting, HCL, IBM, Quinnox,
how many design pattern r there? and wht design pattern u use and why ?
What is the difference between method and constructor ?
what release of java technology are currently available what do they contain?
What is the difference between abstract class and interface?
Are arrays dynamic in java?
Explain about Superclass and Subclass?
What is a line break example?
What is locale?
what is method reference in java 8?
Can classes declared using the abstract keyword cab be instantiated?
Is it possible to create object with out its default constructor? if possible how? else not possible? justify