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
Explain about Garbage Collector?
What are the general quetions are in DEna bank manager IT/System interviews?
Why is main an int?
Why is swift so fast?
Define pre-condition and post-condition to a member function in c++?
Explain the uses oof nested class?
Specify different types of decision control statements?
How do I run c++?
How to defines the function in c++?
What is the size of a vector?
Which software is used for c++ programming?
How a new operator differs from the operator new?
Is swift faster than c++?
How is modularity introduced in C++?
What is the limitation of cin while taking input for character array?