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
What is encapsulation in simple terms?
Can enum be null?
What is static in oop?
What is abstraction in oops with example?
What is constructor overloading in oop?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
How do you use inheritance in unity?
What is interface in oop?
What is difference between oop and pop?
What is abstraction oop?
What is destructor give example?
What is the significance of classes in oop?
c++ program to swap the objects of two different classes
What is the diamond problem in inheritance?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.