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 methods in oop?
What is the real time example of inheritance?
#include
How to hide the base class functionality in Inheritance?
any one please tell me the purpose of operator overloading
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
How to use CMutex, CSemaphore in VC++ MFC
when to use 'mutable' keyword and when to use 'const cast' in c++
What is encapsulation process?
write string class as your own class in java without using any built-in function
What is abstraction and encapsulation?
officer say me - i am offered to a smoking , then what can you say
What is basic concept of oop?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What are the three parts of a simple empty class?