what is object slice?

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


Please Help Members By Posting Answers For Below Questions

Why is string buffer better than string ?

693


What is a parameter in java?

629


What are the three parts of a lambda expression?

627


How do you write methodology?

649


What are advantages of exception handling in java?

677






Can we use String with switch case?

748


What is the integer of 16?

616


Differentiate between nested and inner class in java.

653


What is boolean data type in java?

656


What about interthread communication and how it takes place in java?

655


Why can we not override static method?

685


Why do we create public static method in java?

675


What is meant by tab pans?

743


What is string data?

650


What is array class in java?

679