

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of the below Java program with inheritance? |
A. | Sweet=$10 Sugar=$20 |
B. | Sweet=$10 Sugar=$10 |
C. | Sweet=$20 Sugar=$20 |
D. | Compiler error |
Answer» B. Sweet=$10 Sugar=$10 | |