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
Why main function is special in c++?
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
What is the basic structure of a c++ program?
Why c++ is faster than java?
How can you link a c++ program to c functions?
What are stacks? Give an example where they are useful.
Is std :: string immutable?
What is #include sstream?
What are destructors?
What's the best free c++ profiler for windows?
Is it possible to provide default values while overloading a binary operator?
How do you clear a buffer in c++?
What is a manipulator in c++?
which operator is used for performing an exponential operation a) > b) ^ c) none
List the advantages of inheritance.