Overriding With Same Signature
easyQuestion 132A base class Printer has been provided with a virtual function print() that is marked const and prints "Printing".
A derived class ColorPrinter publicly inherits from Printer.
Your task is to override the print() function in ColorPrinter so that it prints "Color Printing". You MUST match the exact signature, including the const keyword, or the override will not work correctly.
Do NOT include a main function. Your code will be tested automatically.
Expected output
Color Printing= newline. The output ends with a newline, so print one after the last line.
Hints2 available
Sign in to use hintsTopics
Inheritance
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (cout, fori)
Your output
Run your code to see the output here...
Test cases
Run your code to see test case results.