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
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What is an advantage of polymorphism?
What are two types of polymorphism?
What is the real time example of encapsulation?
What is multilevel inheritance?
What is purpose of inheritance?
What is the main purpose of inheritance law?
What is inheritance in simple words?
What is the problem with multiple inheritance?
What is the types of inheritance?
What are the 3 pillars of oop?
What is the oops and benefits of oops programming?
What are the three main types of variables?
What is constructor in oop?
Can we create object of abstract class?