โ Back to Inheritance
Question 517
Call Base Method With base
Call Base Method With base
ThevirtualmethodLog()inLoggerprintsBase log. OverrideLog()inFileLoggerso it FIRST calls the base implementation withbase.Log(), then printsFile log. Do NOT write aMainmethod. When the tester callsLog()on aFileLogger, the program prints: Base log File log
Expected Output:
Base log File log
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.