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 is a module function?

562


Explain about main thread in java?

617


I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?

646


Why set is used in java?

573


What is methodological theory?

531






What's the access scope of protected access specifier?

536


What do you understand by a Static Variable?

639


Is java an open source?

530


How do you remove an object from an arraylist in java?

467


What is pre increment and post increment in java?

510


Is class is a data type?

576


Describe the various concepts related to object oriented programming (oop).

592


What are different types of control structures?

495


What is high level language in computer?

541


What is the difference between stored procedure & function?

557