Child cObj = new Parent()
Wahts the output ?
Answer Posted / giri
You can write below ways [Upcasting].
Child *cObj = new Parent();
| Is This Answer Correct ? | 5 Yes | 10 No |
Post New Answer View All Answers
What is the main feature of oop?
why reinterpret cast is considered dangerous?
What do you mean by variable?
What is polymorphism and types?
What is oops with example?
What are the three parts of a simple empty class?
What is encapsulation in oops?
What is abstraction in oops?
What is abstraction in oop with example?
State what is encapsulation and friend function?
What is property in oops?
What is persistence in oop?
What is polymorphism and its types?
Get me a number puzzle game-program
How to hide the base class functionality in Inheritance?