Child cObj = new Parent()
Wahts the output ?
Answer Posted / deepthi
An error. We cant create such kinda objects.
| Is This Answer Correct ? | 20 Yes | 5 No |
Post New Answer View All Answers
what are the realtime excercises in C++?
Can a destructor be called directly?
What is this pointer in oop?
Why is there no multiple inheritance?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
When not to use object oriented programming?
What is difference between oop and pop?
How do you achieve polymorphism?
What is for loop and its syntax?
What is a superclass in oop?
How do you define social class?
How can you overcome the diamond problem in inheritance?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What is abstraction example?
What is data binding in oops?