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
Where is pseudocode used?
Why do we use oops?
when to use 'mutable' keyword and when to use 'const cast' in c++
How is polymorphism achieved?
Why is oop better than procedural?
How oops is better than procedural?
can inline function declare in private part of class?
What is inheritance write a program to show use of inheritance?
what type of question are asked in thoughtworks pair programming round ?
What is a null tree?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
is there any choice in opting subjects like 4 out of 7
What is a class in oop?
What is balance factor?
Why multiple inheritance is not possible?