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
Explain the concepts involved in Object Oriented programming.
Which language is not a true object oriented programming language?
What is the purpose of enum?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
Templates mean
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
What is polymorphism explain?
How do you define a class in oop?
What are benefits of oop?
Is enum a class?
What is encapsulation example?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
Is react oop?
What is cohesion in oop?
What are the data types in oop?