Answer Posted / 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 |
Post New Answer View All Answers
What is variable in java?
What is parseint?
How do you do exponents in java?
What is the difference between int and integer in java?
Why is serialization required?
What is the purpose of using javap?
What is the range of the short type?
How many characters is 16 bytes?
Can a list be null in java?
What is java lang object?
Why we use protected in java?
Can we have any other return type than void for main method?
What is static import in java?
What is the meaning of I ++ in java?
How many types of array are there?