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 a class instance variable?
What is the advantage of OOP in java?
Does isempty check for null?
diff. b/w JAVA and javascript...
What is double data type?
what is an virtual function
How many digits can a float hold?
WHAT IS MARKER INTERFACE,AND NO METHODS IS NOT THERE ON THAT INTERFACE THEN WHY WE USED IN JAVA?
What is the purpose of the return statement?
What is type casting?
What is the list interface?
What is a boolean structure?