what is object slicing

Answer Posted / subhashish saha

When you try to assign derived class object to an object of
base class, it takes the elements that has relivance with
respect to the base class and slices off the remaining
thing. this is object slicing...

Is This Answer Correct ?    27 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is overriding in oops?

593


Please send ford technologies placement paper 2 my mail id

1646


What does and I oop and sksksk mean?

644


What is encapsulation process?

573


What is polymorphism and why is it important?

554






what is the 3 types of system development life cycle

2429


what type of question are asked in thoughtworks pair programming round ?

1754


when to use 'mutable' keyword and when to use 'const cast' in c++

1640


Why multiple inheritance is not possible?

590


which feature are not hold visual basic of oop?

1717


What is the highest level of cohesion?

567


What is difference between abstraction and encapsulation?

584


What are the 4 main oop principles?

670


Do you know about multiple inheritance?

634


What is class and object with example?

581