โ Back to Inheritance
Question 533
Cash Payment Amount
Cash Payment Amount
Paymentis anabstractclass with anabstractmethodAmount. Provide the implementation inCashPaymentso it returns50. Do NOT write aMainmethod. The program prints: 50
Expected Output:
50
Topics:
Inheritance
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.