CJCoding With Joseph
15per day

Overriding With Same Signature

A 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

Expected Output:

Color Printing
Topics:
Inheritance
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท 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.