Answer Posted / bibek
object slicing is the technique where we when we assign the
value of derived class to the base class,only the base class
content is sliced not the derived class own datamember.
| Is This Answer Correct ? | 10 Yes | 7 No |
Post New Answer View All Answers
What is class and example?
#include
What is use of overloading?
What is polymorphism what is it for and how is it used?
What is polymorphism in oop example?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is protected in oop?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is abstraction in oop?
What is inheritance write a program to show use of inheritance?
What is difference between multiple inheritance and multilevel inheritance?
Can destructor be overloaded?
Is oop better than procedural?
What is polymorphism explain its types?
What are the benefits of interface?