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

What does this () mean in constructor chaining concept?

552


What is java oops?

549


What is string immutability?

533


What is preflight request?

523


Is set ordered in java?

567






Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?

551


How the interruptible method gets implemented?

553


What is oop principle in java?

544


What is hasnext in java?

574


what do you mean by marker interface in java?

541


If system.exit (0); is written at the end of the try block, will the finally block still execute?

613


What is the difference between && and & in java?

563


What is the largest long allowed by java?

530


What is ide with example?

540


Why java is secure? Explain.

584