Child cObj = new Parent()
Wahts the output ?
Answer Posted / bangarraju
This is the DownCasting,but using like this
Child* obj=down_cast<Child* >(Parent) either using RTTI
mechanism in C++
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
#include
What is ambiguity in inheritance?
What are oops methods?
What is the types of inheritance?
What is class in oop with example?
Can bst contain duplicates?
What are main features of oop?
What is the purpose of polymorphism?
What is class encapsulation?
What is meant by multiple inheritance?
Can we have inheritance without polymorphism?
What is polymorphism used for?
What do you mean by variable?
What is abstraction and encapsulation?
Why is polymorphism used?