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
How to call a non virtual function in the derived class by using base class pointer
What does <> mean pseudocode?
What is the significance of classes in oop?
write string class as your own class in java without using any built-in function
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
Why do we use oop?
What is stream in oop?
What are main features of oop?
What is constructor in oop?
What is encapsulation with example?
What is an example of genetic polymorphism?
Why multiple inheritance is not allowed?
Why multiple inheritance is not possible?
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.
What are the data types in oop?