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 a class be accessed, If no access modifiers are declared?
What is difference between equal and == in java?
Is a string literal?
define polymorphism in java
What happens to the Exception object after handling an exception?
What are the advantages of functions?
What is :: operator in java?
How can i add a button in applet in java ???
How do you compare two strings lexicographically?
how to use crystal reports in java
What are the main uses of java?
What are the three parts of a lambda expression? What is the type of lambda expression?