What is object slicing and how can we prevent it?
Answer Posted / vikas
Object slicing occurs when we assign an instance of the
subclass to a variable of type base class.
http://www.cppquestions.com/viewtopic.php?f=17&t=49
| Is This Answer Correct ? | 12 Yes | 9 No |
Post New Answer View All Answers
Does c++ have arraylist?
What is the standard template library (stl)?
What is c++ in english?
What is the difference between strcpy() and strncpy()?
Why do we use templates?
Are iterators pointers?
Why is c++ called oops?
Why was c++ created?
How compile and run c++ program in turbo c++?
Write about an iterator class?
describe private access specifiers?
How will you call C functions from C ++ and vice-versa?
What are the steps in the development cycle?
Is dev c++ a good compiler?
How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?