CJCoding With Joseph
15per day

Function Overriding

A base class Shape has been provided with a virtual function draw() that prints "Drawing Shape".

A derived class Circle publicly inherits from Shape.

Your task is to override the draw() function in the Circle class so that it prints "Drawing Circle" instead.

Do NOT include a main function. Your code will be tested automatically.

Expected output:
Drawing Circle

Expected Output:

Drawing Circle
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.