CJCoding With Joseph

Protected Wrap Helper

Formatter has a protected helper method Wrap that surrounds text in square brackets. In TagFormatter, complete Format so it returns the wrapped text by calling the inherited Wrap. Do NOT write a Main method.

For Format("hi") the program prints:

[hi]

Expected Output:

[hi]
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.