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
Why is oop useful?
What is polymorphism and its types?
What is abstraction in oop with example?
What is persistence in oop?
What language is oop?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
Can main method override?
is there any choice in opting subjects like 4 out of 7
What is the oops and benefits of oops programming?
How do you achieve polymorphism?
Can bst contain duplicates?
What is inheritance write a program to show use of inheritance?
How does polymorphism work?
Can you explain polymorphism?
What is polymorphism and types?